Date: Fri, 29 Apr 2016 20:33:20 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298803 - head/sys/netinet Message-ID: <201604292033.u3TKXKH2013003@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604292033.u3TKXKH2013003>