From: Stefan Metzmacher Date: Wed, 23 Dec 2020 10:58:08 +0000 (+0100) Subject: s3:adouble: allow ad_fget/ad_get_internal to be used with a backend fsp X-Git-Tag: tevent-0.11.0~2041 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45a8d753d3a415d2a8038d1327276ecb972b036;p=thirdparty%2Fsamba.git s3:adouble: allow ad_fget/ad_get_internal to be used with a backend fsp Up to now we only passed in stream fsp, but that will change shortly. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/adouble.c b/source3/lib/adouble.c index ec29ad8a9b6..abd901b2172 100644 --- a/source3/lib/adouble.c +++ b/source3/lib/adouble.c @@ -2440,7 +2440,11 @@ static struct adouble *ad_get_internal(TALLOC_CTX *ctx, int mode; if (fsp != NULL) { - smb_fname = fsp->base_fsp->fsp_name; + if (fsp->base_fsp != NULL) { + smb_fname = fsp->base_fsp->fsp_name; + } else { + smb_fname = fsp->fsp_name; + } } DEBUG(10, ("ad_get(%s) called for %s\n",