From 1e8fd55cfbb2b8eeda11c68935f34b057f6a40b9 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 24 Jan 2003 11:08:54 +0000 Subject: [PATCH] Fix uninitialized sl_is_udp --- servers/slapd/daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) { -- 2.39.5