]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
We return a pointer when we are using cap_init() or cap_service_open()
authoroshogbo <oshogbo@FreeBSD.org>
Sun, 12 Nov 2017 07:18:10 +0000 (07:18 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Sun, 12 Nov 2017 07:18:10 +0000 (07:18 +0000)
commitfff97aa66a337b94c63ebd7a1c427c9b260d2e53
treec600c660915d9a470ee0a0a1e9ea38cc4fe63857
parentd1f808278091dd69c18f5d67c5ccd5e9795f1e57
We return a pointer when we are using cap_init() or cap_service_open()
function, so check if cap_chanel_t is NULL is not enough.
Casper with a normal libc will still fail in capability mote so let's not
enter capability mode without casper support when we need to resolve DNS.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D12823
lib/libcasper/libcasper/libcasper.h
sbin/ping/ping.c