Reply with status invalid instead of bad length on invalid command

This commit is contained in:
Miroslav Lichvar
2011-01-19 14:44:10 +01:00
parent 9d35b5deac
commit bc4d5df94e
2 changed files with 17 additions and 5 deletions

View File

@@ -1309,6 +1309,8 @@ submit_request(CMD_Request *request, CMD_Reply *reply, int *reply_auth_ok)
}
command_length = PKL_CommandLength(request);
assert(command_length > 0);
#if 0
printf("Sent command length=%d bytes\n", command_length);
#endif