diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-03 09:59:36 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-03 09:59:36 +0000 |
| commit | b3ea3170b342c6ad35c8416e891951cea55a696d (patch) | |
| tree | cfdaab977886e4d2a59d0a62a523592dc8b01249 /libexec/ftpd | |
| parent | ef9c54c751de5d53aea501da20dfe26d7c838caa (diff) | |
Notes
Diffstat (limited to 'libexec/ftpd')
| -rw-r--r-- | libexec/ftpd/ftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index cd72ed277756..02f89b209d82 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -642,7 +642,8 @@ inithosts() hrp->anonuser = "ftp"; hrp->next = NULL; thishost = firsthost = lhrp = hrp; - freeaddrinfo(res); + if (res) + freeaddrinfo(res); if ((fp = fopen(_PATH_FTPHOSTS, "r")) != NULL) { int addrsize, error; void *addr; |
