From: Luke Howard Date: Fri, 24 Jan 2003 11:08:54 +0000 (+0000) Subject: Fix uninitialized sl_is_udp X-Git-Tag: NO_SLAP_OP_BLOCKS~504 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e8fd55cfbb2b8eeda11c68935f34b057f6a40b9;p=openldap Fix uninitialized sl_is_udp --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 789031aedf..31de518800 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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 ) {