remove unused arguments
This commit is contained in:
3
ldap.h
3
ldap.h
@@ -165,8 +165,7 @@ size_t scan_ldapmessage(const char* src,const char* max,
|
||||
unsigned long* messageid,unsigned long* op,
|
||||
size_t* len);
|
||||
|
||||
size_t scan_ldapmessage_nolengthcheck(const char* src,const char* max,
|
||||
unsigned long* messageid,unsigned long* op,size_t* len);
|
||||
size_t scan_ldapmessage_nolengthcheck(const char* src,const char* max,size_t* len);
|
||||
|
||||
size_t scan_ldapbindrequest(const char* src,const char* max,
|
||||
unsigned long* version,struct string* name,
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include "ldap.h"
|
||||
|
||||
size_t scan_ldapmessage_nolengthcheck(const char* src,const char* max,
|
||||
unsigned long* messageid,unsigned long* op,size_t* len) {
|
||||
size_t res,tmp;
|
||||
if (!(res=scan_asn1SEQUENCE_nolengthcheck(src,max,len))) return 0;
|
||||
return res;
|
||||
size_t scan_ldapmessage_nolengthcheck(const char* src,const char* max,size_t* len) {
|
||||
return scan_asn1SEQUENCE_nolengthcheck(src,max,len);
|
||||
}
|
||||
|
||||
@@ -1589,7 +1589,7 @@ static int handle(int in,int out) {
|
||||
/* Maybe the message is larger than the buffer. Attempt to find out how large the
|
||||
* buffer should be so we can capture the whole message */
|
||||
if (len>0) {
|
||||
res=scan_ldapmessage_nolengthcheck(buf,buf+len,&messageid,&op,&Len);
|
||||
res=scan_ldapmessage_nolengthcheck(buf,buf+len,&Len);
|
||||
if (res) {
|
||||
/* we could parse the header and have a size. Now check if it is plausible. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user