diff --git a/scan_ldapsearchfilter.c b/scan_ldapsearchfilter.c index e407d8d..26a8153 100644 --- a/scan_ldapsearchfilter.c +++ b/scan_ldapsearchfilter.c @@ -44,6 +44,8 @@ int scan_ldapsearchfilter(const char* src,const char* max,struct Filter** f) { res+=tmp; if (src+res+len>max) goto error; if (!(*f=malloc(sizeof(struct Filter)))) goto error; + (*f)->next=0; + (*f)->x=0; (*f)->substrings=0; nmax=src+res+len; switch ((*f)->type=tag) {