summaryrefslogtreecommitdiff
path: root/extlibs
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-09-05 19:56:33 +0100
committerFreeArtMan <dos21h@gmail.com>2017-09-05 19:56:33 +0100
commit7b529a3875d2987b62e5fb5349fdfba36a59a7c3 (patch)
treeef87aae5273d82c8e7922fbb8ec102e90dc66b24 /extlibs
parenta910bc4131984ca5a1e0860dc89073586197a4ba (diff)
downloadagni-7b529a3875d2987b62e5fb5349fdfba36a59a7c3.tar.gz
agni-7b529a3875d2987b62e5fb5349fdfba36a59a7c3.zip
server->event thread messaging, command execution and response.
Diffstat (limited to 'extlibs')
-rw-r--r--extlibs/netbytes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extlibs/netbytes.c b/extlibs/netbytes.c
index 81ba4d0..68a04e3 100644
--- a/extlibs/netbytes.c
+++ b/extlibs/netbytes.c
@@ -651,7 +651,9 @@ int nb_load( netbyte_store *store, uint8_t *data )
break;
}
default:
- printf("Unknown type");
+ printf("Unknown type\n");
+ //FIX non freed structures, if this happends in middle of transfer
+ return -1;
}
if ( c >= data + size )
{