Fix segfault in patty_ax25_if_addr_match()

This commit is contained in:
XANTRONIX Development 2020-08-24 16:05:37 -05:00 committed by XANTRONIX Industrial
parent fb982742f5
commit 6bb71a37ff

View file

@ -281,7 +281,7 @@ int patty_ax25_if_addr_match(patty_ax25_if *iface,
item = iface->aliases->first;
while ((item = item->next) != NULL) {
while (item) {
patty_ax25_addr *alias = item->value;
if (memcmp(&alias->callsign,
@ -289,6 +289,8 @@ int patty_ax25_if_addr_match(patty_ax25_if *iface,
sizeof(addr->callsign)) == 0) {
return 1;
}
item = item->next;
}
return 0;