s3/rpc_server: shared rpc modules loading
authorRalph Boehme <slow@samba.org>
Mon, 30 Jan 2017 17:49:39 +0000 (18:49 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Jan 2017 23:45:18 +0000 (00:45 +0100)
commit9785fe5af6613a728a7d92c82bbc31cabbe3a0b9
tree76b6c4c347ca635b25ec667fe14c6f083104b4e2
parent0e1deb77f2b310ad7e5dd784174207adacf1c981
s3/rpc_server: shared rpc modules loading

The previous commit 58889e04bd545d7420d1193e134351bd0ccb8430 for this
bug was broken as it didn't move the goto into the "if (errno !=
ENOENT)" condition.

This updated fix folds the test "mod_init_fns == NULL" and the check for
the errno into one if condition.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12184

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/rpc_service_setup.c