mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s4-dnsserver: Handle the case when the dns name is NULL
Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
parent
6e800bfba7
commit
8dca18a71a
@ -128,6 +128,10 @@ int dns_split_name_components(TALLOC_CTX *tmp_ctx, const char *name, char ***com
|
||||
char *str = NULL, *ptr, **list;
|
||||
int count = 0;
|
||||
|
||||
if (name == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
str = talloc_strdup(tmp_ctx, name);
|
||||
if (!str) {
|
||||
goto failed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user