fmt_ldapbindrequest returned too big a length

This commit is contained in:
leitner
2004-07-05 21:45:18 +00:00
parent 989695af67
commit dee7f4c9c1

View File

@@ -12,6 +12,6 @@ int fmt_ldapbindrequest(char* dest,long version,char* name,char* simple) {
sum+=l; if (dest) dest+=l;
nlen=str_len(simple);
l=fmt_asn1string(dest,PRIVATE,PRIMITIVE,0,simple,nlen);
if (dest) dest+=l+nlen;
return sum+l+nlen;
if (dest) dest+=l;
return sum+l;
}