Skip to content
This repository
Browse code

Try to fix assertion failure.

  • Loading branch information...
commit 0921620f9dea05145c28c57b292c1e26b32769cc 1 parent 5e044d8
authored March 20, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  net/Ducttape.c
2  net/Ducttape.c
@@ -247,7 +247,7 @@ static inline uint8_t incomingForMe(struct Message* message,
247 247
                                     bool containsHandle)
248 248
 {
249 249
     struct SessionManager_Session* session = context->session;
250  
-    if (containsHandle) {
  250
+    if (containsHandle && message->length >= 4) {
251 251
         uint32_t handle_be;
252 252
         Message_pop(message, &handle_be, 4);
253 253
         session->sendHandle_be = handle_be | HANDLE_FLAG_BIT_be;

0 notes on commit 0921620

Please sign in to comment.
Something went wrong with that request. Please try again.