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,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"