]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Catch malloc(3) errors and socket(2) errors
authorEnji Cooper <ngie@FreeBSD.org>
Sun, 29 May 2016 03:42:50 +0000 (03:42 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Sun, 29 May 2016 03:42:50 +0000 (03:42 +0000)
commit43db5d126cf0f7addc42be18e67cb8891283984b
tree350d8e5e4b0f3081e1a41dc1e2287d39fe7fc7fb
parent08f9163b69b3746add60b55c47400954992401e7
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