Permalink
Browse files

Try to fix assertion failure.

  • Loading branch information...
1 parent 5e044d8 commit 0921620f9dea05145c28c57b292c1e26b32769cc Caleb James DeLisle committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 net/Ducttape.c
View
@@ -247,7 +247,7 @@ static inline uint8_t incomingForMe(struct Message* message,
bool containsHandle)
{
struct SessionManager_Session* session = context->session;
- if (containsHandle) {
+ if (containsHandle && message->length >= 4) {
uint32_t handle_be;
Message_pop(message, &handle_be, 4);
session->sendHandle_be = handle_be | HANDLE_FLAG_BIT_be;

0 comments on commit 0921620

Please sign in to comment.