mirror of
https://github.com/samba-team/samba.git
synced 2025-01-17 02:05:21 +03:00
r19072: Fix a potential NULL dereference. Simo/Tridge, not merging yet to 4_0, I'd
like you to comment. Volker
This commit is contained in:
parent
df148a5def
commit
ba18c58f1f
@ -126,7 +126,7 @@ char *ldb_attr_casefold(void *mem_ctx, const char *s)
|
||||
{
|
||||
int i;
|
||||
char *ret = talloc_strdup(mem_ctx, s);
|
||||
if (!s) {
|
||||
if (!ret) {
|
||||
errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user