]> git.sur5r.net Git - openldap/commitdiff
Fix uninitialized sl_is_udp
authorLuke Howard <lukeh@openldap.org>
Fri, 24 Jan 2003 11:08:54 +0000 (11:08 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 24 Jan 2003 11:08:54 +0000 (11:08 +0000)
servers/slapd/daemon.c

index 789031aedf8602637b76e3861379be25d43c27f0..31de5188007d3f683acd35ec0cdbe441630b8419 100644 (file)
@@ -663,9 +663,6 @@ static int slap_open_listener(
                return -1;
 #endif
        } else {
-#ifdef LDAP_CONNECTIONLESS
-               l.sl_is_udp = ( tmp == LDAP_PROTO_UDP );
-#endif
                if( lud->lud_host == NULL || lud->lud_host[0] == '\0'
                        || strcmp(lud->lud_host, "*") == 0 )
                {
@@ -674,6 +671,9 @@ static int slap_open_listener(
                        err = slap_get_listener_addresses(lud->lud_host, port, &sal);
                }
        }
+#ifdef LDAP_CONNECTIONLESS
+       l.sl_is_udp = ( tmp == LDAP_PROTO_UDP );
+#endif
 
 #if defined(LDAP_PF_LOCAL) || defined(SLAP_X_LISTENER_MOD)
        if ( lud->lud_exts ) {