diff options
Diffstat (limited to 'sys/netatalk/at_control.c')
| -rw-r--r-- | sys/netatalk/at_control.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index 3777a23b2c90..60f65ed4dcda 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -861,10 +861,10 @@ aa_claim_addr(struct ifaddr *ifa, struct sockaddr *gw0) */ if ((addr->sat_addr.s_net == gw->sat_addr.s_net) || ((addr->sat_range.r_netrange.nr_lastnet) - && (gw->sat_addr.s_net - >= addr->sat_range.r_netrange.nr_firstnet ) - && (gw->sat_addr.s_net - <= addr->sat_range.r_netrange.nr_lastnet ))) { + && (ntohs(gw->sat_addr.s_net) + >= ntohs(addr->sat_range.r_netrange.nr_firstnet )) + && (ntohs(gw->sat_addr.s_net) + <= ntohs(addr->sat_range.r_netrange.nr_lastnet )))) { return 1; } break; |
