1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:notifyd: Check return value of lp_load_initial_only()

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
Andreas Schneider 2020-06-10 17:32:11 +02:00 committed by Isaac Boukris
parent 155d9e0b40
commit e7d4926654

View File

@ -39,7 +39,12 @@ int main(int argc, const char *argv[])
setup_logging("notifyd", DEBUG_DEFAULT_STDOUT);
lp_set_cmdline("log level", "10");
lp_load_initial_only(get_dyn_CONFIGFILE());
ok = lp_load_initial_only(get_dyn_CONFIGFILE());
if (!ok) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
get_dyn_CONFIGFILE());
return 1;
}
ev = samba_tevent_context_init(frame);
if (ev == NULL) {