From: Alan T. DeKok Date: Fri, 26 Jun 2015 01:32:12 +0000 (-0400) Subject: Fix CID #1308371 X-Git-Tag: release_3_0_9~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064bcf8f3c52d5283c766e3541ef06813e5a532c;p=thirdparty%2Ffreeradius-server.git Fix CID #1308371 --- diff --git a/src/main/listen.c b/src/main/listen.c index 512285463e6..abb8e857d69 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -1015,7 +1015,7 @@ int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this) rcode = cf_item_parse(cs, "proto", FR_ITEM_POINTER(PW_TYPE_STRING, &proto), "udp"); if (rcode < 0) return -1; - if (strcmp(proto, "udp") == 0) { + if (!proto || strcmp(proto, "udp") == 0) { sock->proto = IPPROTO_UDP; } else if (strcmp(proto, "tcp") == 0) {