From 8c081cb1fef6cdfdf4b3d42cc93e97d0d6a59d14 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 9 May 2017 10:05:57 +0200 Subject: Update tinyldap part --- fmt_ldapbindrequest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fmt_ldapbindrequest.c') diff --git a/fmt_ldapbindrequest.c b/fmt_ldapbindrequest.c index 531f152..a5d2e18 100644 --- a/fmt_ldapbindrequest.c +++ b/fmt_ldapbindrequest.c @@ -1,7 +1,7 @@ #include #include "ldap.h" #include -#include "rangecheck.h" +#include size_t fmt_ldapbindrequest(char* dest,long version,const char* name,const char* simple) { size_t l,sum; @@ -15,7 +15,6 @@ size_t fmt_ldapbindrequest(char* dest,long version,const char* name,const char* nlen=str_len(simple); l=fmt_asn1string(dest,PRIVATE,PRIMITIVE,0,simple,nlen); if (add_of(sum,sum,l)) return (size_t)-1; - if (dest) dest+=l; return sum; } @@ -29,6 +28,5 @@ size_t fmt_ldapbindrequeststring(char* dest,long version,const struct string* na // sum+=l; if (dest) dest+=l; l=fmt_asn1string(dest,PRIVATE,PRIMITIVE,0,simple->s,simple->l); if (add_of(sum,sum,l)) return (size_t)-1; - if (dest) dest+=l; return sum; } -- cgit v1.2.3-55-g7522