Fix for incoming YooHoo session with bad password
This commit is contained in:
parent
e72f7c6274
commit
926ee53be1
@ -11,6 +11,9 @@ v0.35.05 19-Oct-2002
|
|||||||
There is now a mberrors.h file that defines all errorcodes
|
There is now a mberrors.h file that defines all errorcodes
|
||||||
returned by all programs.
|
returned by all programs.
|
||||||
|
|
||||||
|
mbcico:
|
||||||
|
Fixed crash with incoming YooHoo session with bad password.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
v0.35.04 29-Sep-2002 - 19-Oct-2002.
|
v0.35.04 29-Sep-2002 - 19-Oct-2002.
|
||||||
|
@ -179,7 +179,9 @@ int rx_yoohoo(void)
|
|||||||
inbound = xstrcpy(CFG.pinbound);
|
inbound = xstrcpy(CFG.pinbound);
|
||||||
pwd = xstrcpy(nodes.Spasswd);
|
pwd = xstrcpy(nodes.Spasswd);
|
||||||
} else {
|
} else {
|
||||||
pwd = (char *)"BAD_PASS";
|
if (pwd)
|
||||||
|
free(pwd);
|
||||||
|
pwd = xstrcpy((char *)"BAD_PASS");
|
||||||
Syslog('?', "Remote password \"%s\", expected \"%s\"", (char*)hello2.my_password, nodes.Spasswd);
|
Syslog('?', "Remote password \"%s\", expected \"%s\"", (char*)hello2.my_password, nodes.Spasswd);
|
||||||
localcaps = 0;
|
localcaps = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user