support external username / password up to 128 octets

This commit is contained in:
z3APA3A committed 2016-03-10 17:05:56 +03:00
1 parent f67c9a39f1
commit dcec2cadaa
6 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ void * pop3pchild(struct clientparam* param) {
CLEANRET:
if(param->hostname&&param->extusername) {
sprintf((char *)buf, "%.64s@%.128s%c%hu", param->extusername, param->hostname, (*SAPORT(&param->sinsr)==110)?0:':', ntohs(*SAPORT(&param->sinsr)));
sprintf((char *)buf, "%.128s@%.128s%c%hu", param->extusername, param->hostname, (*SAPORT(&param->sinsr)==110)?0:':', ntohs(*SAPORT(&param->sinsr)));
(*param->srv->logfunc)(param, buf);
}
else (*param->srv->logfunc)(param, NULL);