From 4fad202b44e255eb64a9476f62e58d065b2b297b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 11 May 2000 02:41:34 +0000 Subject: [PATCH] hostname needs to be static --- servers/slapd/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index fe640ff877..1043345f64 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -114,7 +114,7 @@ int sasl_init( void ) } if( sasl_host == NULL ) { - char hostname[MAXHOSTNAMELEN+1]; + static char hostname[MAXHOSTNAMELEN+1]; if( gethostname( hostname, MAXHOSTNAMELEN ) == 0 ) { hostname[MAXHOSTNAMELEN] = '\0'; -- 2.39.5