svn commit: r298803 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Fri Apr 29 20:33:21 UTC 2016
Author: tuexen
Date: Fri Apr 29 20:33:20 2016
New Revision: 298803
URL: https://svnweb.freebsd.org/changeset/base/298803
Log:
Don't assign, just compare...
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Fri Apr 29 20:31:49 2016 (r298802)
+++ head/sys/netinet/sctputil.c Fri Apr 29 20:33:20 2016 (r298803)
@@ -6972,8 +6972,8 @@ sctp_recv_icmp_tunneled_packet(int cmd,
}
type = icmp->icmp_type;
code = icmp->icmp_code;
- if ((type = ICMP_UNREACH) &&
- (code = ICMP_UNREACH_PORT)) {
+ if ((type == ICMP_UNREACH) &&
+ (code == ICMP_UNREACH_PORT)) {
code = ICMP_UNREACH_PROTOCOL;
}
sctp_notify(inp, stcb, net, type, code,
More information about the svn-src-head
mailing list