This commit is contained in:
XANTRONIX Development 2020-06-28 21:33:41 -04:00 committed by XANTRONIX Industrial
parent b9c3568c43
commit cc21e6342b

View file

@ -1056,7 +1056,7 @@ static void save_reply_addr(patty_ax25_sock *sock,
patty_ax25_frame *frame) {
unsigned int i,
hops = frame->hops > PATTY_AX25_MAX_HOPS?
PATTY_AX25_MAX_HOPS: hops;
PATTY_AX25_MAX_HOPS: sock->hops;
memcpy(&sock->local, &frame->dest, sizeof(patty_ax25_addr));
memcpy(&sock->remote, &frame->src, sizeof(patty_ax25_addr));