// While we are at it, read known address information
if(!n->canonical_address) {
n->canonical_address = packmsg_get_str_dup(&in);
+
+ if(!*n->canonical_address) {
+ free(n->canonical_address);
+ n->canonical_address = NULL;
+ }
} else {
packmsg_skip_element(&in);
}
}
n->canonical_address = packmsg_get_str_dup(&in);
+
+ if(!*n->canonical_address) {
+ free(n->canonical_address);
+ n->canonical_address = NULL;
+ }
+
uint32_t count = packmsg_get_array(&in);
for(uint32_t i = 0; i < count; i++) {