Date: Tue, 03 Sep 2019 14:06:28 -0000 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r346026 - stable/12/contrib/bsnmp/snmpd Message-ID: <201904081153.x38Brb6O047732@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Mon Apr 8 11:53:37 2019 New Revision: 346026 URL: https://svnweb.freebsd.org/changeset/base/346026 Log: MFC r345763: Correct a port number assignment. PR: 236930 Modified: stable/12/contrib/bsnmp/snmpd/trap.c Directory Properties: stable/12/ (props changed) Modified: stable/12/contrib/bsnmp/snmpd/trap.c ============================================================================== --- stable/12/contrib/bsnmp/snmpd/trap.c Mon Apr 8 04:54:15 2019 (r346025) +++ stable/12/contrib/bsnmp/snmpd/trap.c Mon Apr 8 11:53:37 2019 (r346026) @@ -726,8 +726,7 @@ target_activate_address(struct target_address *addrs) sa.sin_addr.s_addr = htonl((addrs->address[0] << 24) | (addrs->address[1] << 16) | (addrs->address[2] << 8) | (addrs->address[3] << 0)); - sa.sin_port = htons(addrs->address[4]) << 8 | - htons(addrs->address[5]) << 0; + sa.sin_port = htons(addrs->address[4] << 8 | addrs->address[5]); if (connect(addrs->socket, (struct sockaddr *)&sa, sa.sin_len) == -1) { syslog(LOG_ERR, "connect(%s,%u): %m",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904081153.x38Brb6O047732>