Index: main/netsock2.c =================================================================== --- main/netsock2.c (revision 312751) +++ main/netsock2.c (working copy) @@ -232,6 +232,9 @@ char *s, *host, *port; int e, i, res_cnt; + if (! str) + return 0; + s = ast_strdupa(str); if (!ast_sockaddr_split_hostport(s, &host, &port, flags)) { return 0;