+* [Bug 1276 normal] CID 52: crypto_xmit() may call crypto_alice[23]()
+ with NULL peer
(4.2.5p195) 2009/07/27 Released by Harlan Stenn <stenn@ntp.org>
* cvo.sh: Add support for CentOS, Fedora, Slackware, SuSE.
(4.2.5p194) 2009/07/26 Released by Harlan Stenn <stenn@ntp.org>
* Send challenge in Schnorr (IFF) identity scheme.
*/
case CRYPTO_IFF:
+ if (peer == NULL)
+ break; /* hack attack */
+
if ((rval = crypto_alice(peer, &vtemp)) == XEVNT_OK) {
len = crypto_send(fp, &vtemp, start);
value_free(&vtemp);
* Send challenge in Guillou-Quisquater (GQ) identity scheme.
*/
case CRYPTO_GQ:
+ if (peer == NULL)
+ break; /* hack attack */
+
if ((rval = crypto_alice2(peer, &vtemp)) == XEVNT_OK) {
len = crypto_send(fp, &vtemp, start);
value_free(&vtemp);
* Send challenge in MV identity scheme.
*/
case CRYPTO_MV:
+ if (peer == NULL)
+ break; /* hack attack */
+
if ((rval = crypto_alice3(peer, &vtemp)) == XEVNT_OK) {
len = crypto_send(fp, &vtemp, start);
value_free(&vtemp);