From: Ted Lemon Date: Thu, 10 Jun 1999 00:58:06 +0000 (+0000) Subject: Apply a patch from Andrew Chittenden X-Git-Tag: V2-BETA-1-PATCH-29~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40457ea49886d147df0372b7423691fc22bcc822;p=thirdparty%2Fdhcp.git Apply a patch from Andrew Chittenden --- diff --git a/common/tr.c b/common/tr.c index eee8f9a6e..b19c1833f 100644 --- a/common/tr.c +++ b/common/tr.c @@ -242,8 +242,7 @@ static void save_source_routing(trh, interface) /* found an entry so update it with fresh information */ if (rover != NULL) { if ((trh->saddr[0] & TR_RII) - && (((ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8) > 2) - && !(trh->rcf & htons(TR_RCF_BROADCAST_MASK))) { + && (((ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8) > 2)) { rcf = ntohs(trh->rcf); rcf &= ~TR_RCF_BROADCAST_MASK; memcpy(rover->rseg, trh->rseg, sizeof(rover->rseg));