summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-03-17 19:23:02 +0100
committerSimon Rettberg2014-03-17 19:23:02 +0100
commit718b4b629a7c9358de77860f76c10013349c8b3c (patch)
tree99ce862005839fca80ec59c24922bb2ec719be69
parentMore progress.. Warning: Contains very ugly temporary hack for uidNumber<->ob... (diff)
downloadldadp-718b4b629a7c9358de77860f76c10013349c8b3c.tar.gz
ldadp-718b4b629a7c9358de77860f76c10013349c8b3c.tar.xz
ldadp-718b4b629a7c9358de77860f76c10013349c8b3c.zip
Fix double free in scan_ldapsearchfilter
-rw-r--r--scan_ldapsearchfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scan_ldapsearchfilter.c b/scan_ldapsearchfilter.c
index a6016fa..0ee2398 100644
--- a/scan_ldapsearchfilter.c
+++ b/scan_ldapsearchfilter.c
@@ -109,5 +109,6 @@ size_t scan_ldapsearchfilter(const char* src,const char* max,struct Filter** f)
return res;
error:
free_ldapsearchfilter(*f);
+ *f=0;
return 0;
}