]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix CID #1308371
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jun 2015 01:32:12 +0000 (21:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jun 2015 01:32:50 +0000 (21:32 -0400)
src/main/listen.c

index 512285463e6152cb0b113ef15d94694d30f6d821..abb8e857d6958f0d6628394bb789bad8015e11bf 100644 (file)
@@ -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) {