Fix bug in patty_ax25_if_addr_add()
Fix bug in patty_ax25_if_addr_add() wherein, due to a typo of memcpy() rather than memcmp(), the function would never fail to add an address to an interface, even if it already exists on the interface
This commit is contained in:
parent
5cb98de5d0
commit
854d3bc9a7
1 changed files with 1 additions and 1 deletions
2
src/if.c
2
src/if.c
|
@ -165,7 +165,7 @@ static patty_ax25_addr *find_addr(patty_ax25_if *iface,
|
|||
while (item) {
|
||||
patty_ax25_addr *cur = item->value;
|
||||
|
||||
if (memcpy(&addr->callsign,
|
||||
if (memcmp(&addr->callsign,
|
||||
&cur->callsign,
|
||||
sizeof(addr->callsign)) == 0) {
|
||||
return addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue