svn commit: r346026 - stable/12/contrib/bsnmp/snmpd
Andrey V. Elsukov
ae at FreeBSD.org
Mon Apr 8 11:53:39 UTC 2019
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",
More information about the svn-src-stable-12
mailing list