mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-vfs: Do not deref a NULL pointer in shadow_copy2_snapshot_to_gmt()
Found by covscan. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12592 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
67b978bb26
commit
e6105f92cd
@ -1873,6 +1873,9 @@ static bool shadow_copy2_snapshot_to_gmt(vfs_handle_struct *handle,
|
||||
}
|
||||
/* Extract the prefix */
|
||||
tmp = strstr(tmpstr, priv->config->delimiter);
|
||||
if (tmp == NULL) {
|
||||
goto done;
|
||||
}
|
||||
*tmp = '\0';
|
||||
|
||||
/* Parse regex */
|
||||
|
Loading…
Reference in New Issue
Block a user