diff options
Diffstat (limited to 'tests/sockets/test_sockets_msg.h')
-rw-r--r-- | tests/sockets/test_sockets_msg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sockets/test_sockets_msg.h b/tests/sockets/test_sockets_msg.h index b60b056a..0e68803c 100644 --- a/tests/sockets/test_sockets_msg.h +++ b/tests/sockets/test_sockets_msg.h @@ -17,9 +17,10 @@ int do_msg_read(int sockfd, msg_t *msg, int offset, int length, struct sockaddr return res; } assert(res != 0); - msg->buffer = malloc(msg->length); printf("do_msg_read: allocating %d bytes for message\n", msg->length); + + msg->buffer = malloc(msg->length); } // read the actual message |