Commit 2e166d15 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_gethostname): Return NULL if given a NULL IscAddress.

parent fbda6650
......@@ -184,6 +184,10 @@ char *isc_gethostname(IscAddress *ia, char *buf, int len)
struct sockaddr_in *addr;
struct hostent *hp;
if (ia == NULL)
return NULL;
if (!buf)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment