mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:lib: Avoid a NULL pointer deref on log level 10
Found by cppcheck. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
parent
6114a4a59b
commit
155d9e0b40
@ -2391,7 +2391,7 @@ static struct adouble *ad_get_internal(TALLOC_CTX *ctx,
|
||||
|
||||
DEBUG(10, ("ad_get(%s) called for %s\n",
|
||||
type == ADOUBLE_META ? "meta" : "rsrc",
|
||||
smb_fname->base_name));
|
||||
smb_fname != NULL ? smb_fname->base_name : "???"));
|
||||
|
||||
ad = ad_alloc(ctx, type);
|
||||
if (ad == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user