diff options
Diffstat (limited to 'src/rpcbind.c')
-rw-r--r-- | src/rpcbind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rpcbind.c b/src/rpcbind.c index 25d8a90..ecebe97 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -552,8 +552,10 @@ init_transport(struct netconfig *nconf) syslog(LOG_ERR, "cannot bind %s on %s: %m", (hosts[nhostsbak] == NULL) ? "*" : hosts[nhostsbak], nconf->nc_netid); - if (res != NULL) + if (res != NULL) { freeaddrinfo(res); + res = NULL; + } continue; } else checkbind++; |