summaryrefslogtreecommitdiffstats
path: root/netbytes.c
diff options
context:
space:
mode:
Diffstat (limited to 'netbytes.c')
-rw-r--r--netbytes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/netbytes.c b/netbytes.c
index 81ba4d0..68a04e3 100644
--- a/netbytes.c
+++ b/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 )
{