]> git.sur5r.net Git - openldap/commitdiff
Fix broken patch to v2ref
authorHoward Chu <hyc@openldap.org>
Mon, 1 Nov 1999 23:23:41 +0000 (23:23 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 1 Nov 1999 23:23:41 +0000 (23:23 +0000)
servers/slapd/result.c

index 78b5f7d99c4a2c51833c01b6cf2d9e451bf9bbcb..fbb668baecb3a34c07368bcf9192d6792d360380 100644 (file)
@@ -37,6 +37,7 @@ static char *v2ref( struct berval **ref, const char *text )
                        v2[len++] = '\n';
        }
        strcpy( v2+len, "Referral:" );
+       len += sizeof("Referral:");
 
        for( i=0; ref[i] != NULL; i++ ) {
                v2 = ch_realloc( v2, len + ref[i]->bv_len + 1 );