v08 receiver ignore frame with unhandled ext opcode

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2011-09-25 08:47:57 +01:00
parent 815fa23a98
commit 25a56b0ac3

View file

@ -777,12 +777,9 @@ spill:
handled = 1;
}
if (!handled) {
/* kill the connection */
if (!handled)
fprintf(stderr, "Unhandled extended opcode "
"0x%x\n", wsi->opcode);
return -1;
}
"0x%x - ignoring frame\n", wsi->opcode);
wsi->rx_user_buffer_head = 0;
return 0;
@ -1242,10 +1239,11 @@ spill:
}
if (!handled) {
/* kill the connection */
fprintf(stderr, "Unhandled extended opcode "
"0x%x\n", wsi->opcode);
return -1;
"0x%x - ignoring frame\n", wsi->opcode);
wsi->rx_user_buffer_head = 0;
return 0;
}
break;