]> git.sur5r.net Git - openldap/commitdiff
hostname needs to be static
authorKurt Zeilenga <kurt@openldap.org>
Thu, 11 May 2000 02:41:34 +0000 (02:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 11 May 2000 02:41:34 +0000 (02:41 +0000)
servers/slapd/sasl.c

index fe640ff877020c0c60eb8e1120dc775e21950a06..1043345f64b616e3723cf66568c978b627c1771e 100644 (file)
@@ -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';