mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-01-26 05:16:19 +00:00
libsepol: Add missing return to sepol_node_query()
Due to the missing return in sepol_node_query(), the function always set *response to NULL whenever a protocol was SEPOL_PROTO_IP6 Fixes: sudo semanage node -a -M ::1 -p ipv6 -t node_t ::1 sudo semanage node -m -M ::1 -p ipv6 -t node_t ::1 [1] 12968 segmentation fault (core dumped) semanage node -m -M ::1 -p ipv6 -t node_t ::1 Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
parent
144b74905c
commit
747a440fdd
@ -273,6 +273,7 @@ int sepol_node_query(sepol_handle_t * handle,
|
||||
c, SEPOL_PROTO_IP6,
|
||||
response) < 0)
|
||||
goto err;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user