mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 15:59:41 +08:00
prevent use-after-free in smtpp
This commit is contained in:
1 parent
bac19c9ae6
commit
5165a4d5bd
1 file changed
+1
-1
+1
-1
@@ -61,10 +61,10 @@ int readcommand (struct clientparam* param) {
|
||||
}
|
||||
#endif
|
||||
socksend(param->remsock, buf, i, conf.timeouts[STRING_S]);
|
||||
myfree(buf);
|
||||
if(!strncasecmp((char *)buf, "STARTTLS", 8) || !strncasecmp((char *)buf, "TURN", 4)){
|
||||
ret = 22;
|
||||
}
|
||||
myfree(buf);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user