]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r315641,r315642:
authorngie <ngie@FreeBSD.org>
Mon, 27 Mar 2017 18:26:19 +0000 (18:26 +0000)
committerngie <ngie@FreeBSD.org>
Mon, 27 Mar 2017 18:26:19 +0000 (18:26 +0000)
commitc892be0f144d569d439793d29e35e91f1098aa2c
tree26d93d387832f0239c3418f4429c4ded79e9d643
parent5adb62ab7602a742c3150c42d513dbc7d05b3311
MFC r315641,r315642:

r315641:

bsnmp: don't leak snmp_client.fd in open_client_udp(..) on connect(2) failure

r315642:

bsnmp: explicitly test the return value for open_client_{local,udp} in snmp_open(..)

open_client_* returns -1 on failure; 0 on success. Ensure that the return value is
0 -- otherwise exit snmp_open(..).
contrib/bsnmp/lib/snmpclient.c