osmo-pfcp-tool: Fix call to strerror

Fixes: Coverity scan CID#307499
Change-Id: I91a4116e7cf3721771cea3af82328cf02f1cfc14
This commit is contained in:
arehbein
2023-03-18 22:39:23 +01:00
parent 5bd84491b8
commit 21dae5cd35

View File

@@ -99,7 +99,7 @@ DEFUN(c_listen, c_listen_cmd,
if (rc) {
vty_out(vty, "Failed to bind PFCP endpoint on %s: %s%s\n",
osmo_sockaddr_to_str_c(OTC_SELECT, osmo_pfcp_endpoint_get_local_addr(g_pfcp_tool->ep)),
strerror(rc), VTY_NEWLINE);
strerror(-rc), VTY_NEWLINE);
return CMD_WARNING;
}
return CMD_SUCCESS;