diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 7fa90682ee..ef3ceccde4 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -218,7 +218,7 @@ open_ldap_connection( LDAP *ld, Sockbuf *sb, char *host, int defport, curhost = hostname; } *r++ = '\0'; - port = htons( (short)atoi( r )); + port = htons( (short) atoi( r ) ); } else { port = defport; }