Fix return value of ip_sync_nat. Previously, regardless of error it

always returned a return code of 0.

Obtained from:	NetBSD ip_sync.c r1.5
MFC after:	1 week
This commit is contained in:
Cy Schubert 2017-05-27 18:01:14 +00:00
parent 03311f117b
commit 243567356b

View File

@ -939,7 +939,7 @@ ipf_sync_nat(softc, sp, data)
nat_t *n, *nat;
synclist_t *sl;
u_int hv = 0;
int err;
int err = 0;
READ_ENTER(&softs->ipf_syncnat);
@ -1016,7 +1016,7 @@ ipf_sync_nat(softc, sp, data)
}
RWLOCK_EXIT(&softs->ipf_syncnat);
return 0;
return err;
}