*** chap.org.c Tue Oct 5 00:56:58 2004 --- chap.c Tue Oct 5 00:57:36 2004 *************** *** 493,498 **** --- 493,499 ---- /* Get peer's secret key */ Log(LG_AUTH, (" Peer name: \"%s\"", auth.authname)); + if(*auth.authname){ if (AuthGetData(&auth, 1, &whyFail) < 0) { Log(LG_AUTH, (" Can't get credentials for \"%s\"", auth.authname)); goto badResponse; *************** *** 523,528 **** --- 524,530 ---- AuthFinish(AUTH_PEER_TO_SELF, FALSE, &auth); /* }*/ break; + } } goodResponse: