canonicalize_absolute_path() returns its result, the previous code was
a no-op
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
config->socket_path = NULL;
}
if (config->socket_path != NULL) {
- canonicalize_absolute_path(handle,
- config->socket_path);
+ config->socket_path = canonicalize_absolute_path(
+ handle, config->socket_path);
+ if (config->socket_path == NULL) {
+ errno = ENOMEM;
+ return -1;
+ }
}
connect_timeout = lp_parm_int(snum, "virusfilter",