mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
If the CBCP callee offsers no callback, send our configured
response anyway. This is what Win95 does, despite it not being documented in the cbcp spec.... Reported by: Bill <petheram@acm.org>
This commit is contained in:
parent
7cf368eb42
commit
9fddf73ad0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40798
@ -23,7 +23,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: cbcp.c,v 1.5 1998/10/17 12:28:11 brian Exp $
|
* $Id: cbcp.c,v 1.6 1998/10/25 23:35:15 brian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -354,10 +354,12 @@ cbcp_AdjustResponse(struct cbcp *cbcp, struct cbcp_data *data)
|
|||||||
|
|
||||||
switch (data->type) {
|
switch (data->type) {
|
||||||
case CBCP_NONUM:
|
case CBCP_NONUM:
|
||||||
if (cbcp->fsm.type == CBCP_NONUM)
|
/*
|
||||||
return 1;
|
* If the callee offers no callback, we send our desired response
|
||||||
log_Printf(LogPHASE, "CBCP: server wants no callback !\n");
|
* anyway. This is what Win95 does - although I can't find this
|
||||||
return 0;
|
* behaviour documented in the spec....
|
||||||
|
*/
|
||||||
|
return 1;
|
||||||
|
|
||||||
case CBCP_CLIENTNUM:
|
case CBCP_CLIENTNUM:
|
||||||
if (cbcp->fsm.type == CBCP_CLIENTNUM) {
|
if (cbcp->fsm.type == CBCP_CLIENTNUM) {
|
||||||
|
Loading…
Reference in New Issue
Block a user