1
0
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:
Amitay Isaacs 2011-10-24 17:22:21 +11:00 committed by Andrew Tridgell
parent 6e800bfba7
commit 8dca18a71a

View File

@ -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;