fix substring filter formatting

This commit is contained in:
leitner
2002-03-26 23:49:00 +00:00
parent 3c1e9374a3
commit af04089fb8
2 changed files with 7 additions and 1 deletions

View File

@@ -20,7 +20,7 @@
int fmt_ldapsubstring(char* dest,struct Substring* s) {
long sum=0,tmp=0;
while (s) {
tmp=fmt_asn1string(dest,PRIVATE,CONSTRUCTED,s->substrtype,s->s.s,s->s.l);
tmp=fmt_asn1string(dest,PRIVATE,PRIMITIVE,s->substrtype,s->s.s,s->s.l);
if (dest) dest+=tmp; sum+=tmp;
s=s->next;
}

View File

@@ -491,7 +491,13 @@ int handle(int in,int out) {
}
}
break;
case UnbindRequest:
close(out); if (in!=out) close(in);
return 0;
default:
buffer_puts(buffer_2,"unknown request type ");
buffer_putulong(buffer_2,op);
buffer_putsflush(buffer_2,"\n");
exit(1);
}
Len+=res;