mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
hostname needs to be static
This commit is contained in:
parent
0d6e1a4cbe
commit
4fad202b44
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue