conversation: Remove conversation from the correct table

In conversation_set_addr2, if the existing conversation has
a port2, remove it from the _no_addr2 hashtable, not the _no_port2
hashtable.

Fix #18766
This commit is contained in:
John Thacker 2022-12-29 23:07:06 -05:00
parent dfd3a4d61b
commit 55ffdb08bb
1 changed files with 1 additions and 1 deletions

View File

@ -959,7 +959,7 @@ conversation_set_addr2(conversation_t *conv, const address *addr)
if (conv->options & NO_PORT2) {
conversation_remove_from_hashtable(conversation_hashtable_no_addr2_or_port2, conv);
} else {
conversation_remove_from_hashtable(conversation_hashtable_no_port2, conv);
conversation_remove_from_hashtable(conversation_hashtable_no_addr2, conv);
}
// Shift our endpoint and, if needed, our port element over and set our address.