]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Catch malloc(3) errors and socket(2) errors
authorngie <ngie@FreeBSD.org>
Sun, 29 May 2016 03:42:50 +0000 (03:42 +0000)
committerngie <ngie@FreeBSD.org>
Sun, 29 May 2016 03:42:50 +0000 (03:42 +0000)
commit2fd21198ee670ba90a6e8dc33a5575ae87e23ddb
tree350d8e5e4b0f3081e1a41dc1e2287d39fe7fc7fb
parent1f776afa1cbc91a2631273ffc11b3d2b05a20628
Catch malloc(3) errors and socket(2) errors

- malloc failing will result in a delayed segfault
- socket failing will result in delayed failures with setsockopt

Exit in the event that either of these high-level conditions are met.

Reported by: Coverity
CID: 976288, 976321, 976858
Sponsored by: EMC / Isilon Storage Division
usr.sbin/rpcbind/util.c