]> git.sur5r.net Git - openldap/commitdiff
Declare enough buffer space for out-of-range URL port numbers
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 15 Dec 2007 23:36:22 +0000 (23:36 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 15 Dec 2007 23:36:22 +0000 (23:36 +0000)
libraries/libldap/url.c

index 4ef41f5ef492874e0acfb408b9e727d1ec967cdd..6240efb943b0eb93894a50222ba482469ef9c1c4 100644 (file)
@@ -582,7 +582,7 @@ desc2str_len( LDAPURLDesc *u )
        len += sep;
 
        if ( u->lud_port ) {
-               char    buf[ STRLENOF(":65535") + 1 ];
+               char    buf[LDAP_PVT_INTTYPE_CHARS(int) + 1];
 
                len += snprintf( buf, sizeof( buf ), ":%d", u->lud_port );
                if ( u->lud_host && u->lud_host[0] ) {