Closed H-Maktub closed 1 month ago
This resolves #31 The payload_sock did not clear the data, causing the value of payload_sock->type to be random, causing the memcmp comparison error of HASH_ITER in the add_sn_to_list_by_mac_or_sock function.
Thanks! That does explain the strangeness.
Perhaps the decode_sock_payload() could also make sure it hands back a fully initialised n2n_sock_t structure, but that can wait for some refactoring.
This resolves #31 The payload_sock did not clear the data, causing the value of payload_sock->type to be random, causing the memcmp comparison error of HASH_ITER in the add_sn_to_list_by_mac_or_sock function.