Fix IPOPT_TS processing: do not overwrite IP address by timestamp.
PR: misc/42121 Submitted by: Praveen Khurjekar <praveen@codito.com> Reviewed by: silence on -net MFC after: 1 month
This commit is contained in:
parent
f9e425b336
commit
a5428e3a9a
@ -1405,6 +1405,7 @@ dropit:
|
||||
(void)memcpy(sin, &IA_SIN(ia)->sin_addr,
|
||||
sizeof(struct in_addr));
|
||||
cp[IPOPT_OFFSET] += sizeof(struct in_addr);
|
||||
off += sizeof(struct in_addr);
|
||||
break;
|
||||
|
||||
case IPOPT_TS_PRESPEC:
|
||||
@ -1418,6 +1419,7 @@ dropit:
|
||||
if (ifa_ifwithaddr((SA)&ipaddr) == 0)
|
||||
continue;
|
||||
cp[IPOPT_OFFSET] += sizeof(struct in_addr);
|
||||
off += sizeof(struct in_addr);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user