Fix segfault in patty_ax25_if_addr_match()
This commit is contained in:
parent
fb982742f5
commit
6bb71a37ff
1 changed files with 3 additions and 1 deletions
4
src/if.c
4
src/if.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue