summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/stdlib/t_random.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-01-07 08:42:14 +0000
committerngie <ngie@FreeBSD.org>2017-01-07 08:42:14 +0000
commit974717b39caadd27410500e58680c44572921844 (patch)
tree8abd40bf4f4da55bf134f20cdc4ca36f39ee087f /contrib/netbsd-tests/lib/libc/stdlib/t_random.c
parentb6903072edd16b3e4bdb742fb6249a7c2430b4c0 (diff)
downloadFreeBSD-src-974717b39caadd27410500e58680c44572921844.zip
FreeBSD-src-974717b39caadd27410500e58680c44572921844.tar.gz
MFC r310931,r310942,r310988:
r310931: Use strdup in snmp_parse_server(..) when possible instead of malloc+strcpy This simplifies the code and mutes a Coverity warning about sc->cport being improperly allocated CID: 1018247 r310942: Unbreak the build by passing the string to strdup, not its length Pointyhat to: ngie r310988: snmp_discover_engine: fix up req/resp (PDU object) handling a bit - Call snmp_pdu_free on req and resp when done with the objects - Call snmp_pdu_free on req before calling snmp_pdu_create on it again
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud