summaryrefslogtreecommitdiffstats
path: root/fmt_ldapbindrequest.c
diff options
context:
space:
mode:
Diffstat (limited to 'fmt_ldapbindrequest.c')
-rw-r--r--fmt_ldapbindrequest.c4
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;
}