1
0
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:
Volker Lendecke 2006-10-04 19:32:55 +00:00 committed by Gerald (Jerry) Carter
parent df148a5def
commit ba18c58f1f

View File

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