diff options
author | Simon Rettberg | 2017-05-09 10:05:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-05-09 10:05:57 +0200 |
commit | 8c081cb1fef6cdfdf4b3d42cc93e97d0d6a59d14 (patch) | |
tree | 890ea62f47af0a06db998142810851f618d27bca /fmt_ldapbindrequest.c | |
parent | Delete some more unused files (diff) | |
download | ldadp-8c081cb1fef6cdfdf4b3d42cc93e97d0d6a59d14.tar.gz ldadp-8c081cb1fef6cdfdf4b3d42cc93e97d0d6a59d14.tar.xz ldadp-8c081cb1fef6cdfdf4b3d42cc93e97d0d6a59d14.zip |
Update tinyldap part
Diffstat (limited to 'fmt_ldapbindrequest.c')
-rw-r--r-- | fmt_ldapbindrequest.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 <string.h> #include "ldap.h" #include <str.h> -#include "rangecheck.h" +#include <rangecheck.h> 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; } |