Replace asprintf() by xasprintf().
This commit is contained in:
parent
3e55dc77f4
commit
73d77dd416
13 changed files with 52 additions and 51 deletions
|
|
@ -367,7 +367,7 @@ begin:
|
|||
get_config_string(c->outgoing->cfg, &address);
|
||||
|
||||
if(!get_config_string(lookup_config(c->config_tree, "Port"), &port))
|
||||
asprintf(&port, "655");
|
||||
xasprintf(&port, "655");
|
||||
|
||||
c->outgoing->ai = str2addrinfo(address, port, SOCK_STREAM);
|
||||
free(address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue