summaryrefslogtreecommitdiffstats
path: root/scan_ldapsearchfilter.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-13 18:08:11 +0200
committerSimon Rettberg2019-06-13 18:08:11 +0200
commit5829b696f3d831766c92c58b957feb6315ed7ddb (patch)
tree3d84cf15a594be38c7f31eb2992bee541d10070f /scan_ldapsearchfilter.c
parentFix deprecated OpenSSL call (diff)
downloadldadp-5829b696f3d831766c92c58b957feb6315ed7ddb.tar.gz
ldadp-5829b696f3d831766c92c58b957feb6315ed7ddb.tar.xz
ldadp-5829b696f3d831766c92c58b957feb6315ed7ddb.zip
tag class CONTEXT_SPECIFIC <-> PRIVATE was swapped
Diffstat (limited to 'scan_ldapsearchfilter.c')
-rw-r--r--scan_ldapsearchfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan_ldapsearchfilter.c b/scan_ldapsearchfilter.c
index 0f3eb02..a07888b 100644
--- a/scan_ldapsearchfilter.c
+++ b/scan_ldapsearchfilter.c
@@ -37,7 +37,7 @@ size_t scan_ldapsearchfilter(const char* src,const char* max,struct Filter** f)
const char* nmax;
*f=0;
if (!(res=scan_asn1tag(src,max,&tc,&tt,&tag))) goto error;
- if (tc!=PRIVATE || (tt!=CONSTRUCTED && tag!=7) || tag>9) goto error;
+ if (tc!=CONTEXT_SPECIFIC || (tt!=CONSTRUCTED && tag!=7) || tag>9) goto error;
if (!(tmp=scan_asn1length(src+res,max,&len))) goto error;
res+=tmp;
nmax=src+res+len;