From e6f6e61da46f02bb2676c705974adc26bdfa2623 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 16 Jul 2008 23:10:20 +0200 Subject: [PATCH] dssync keytab: add check for success of ADD_TO_ARRAY(). Michael --- source/libnet/libnet_dssync_keytab.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libnet/libnet_dssync_keytab.c b/source/libnet/libnet_dssync_keytab.c index c502211b459..a2ce8ddcaae 100644 --- a/source/libnet/libnet_dssync_keytab.c +++ b/source/libnet/libnet_dssync_keytab.c @@ -41,6 +41,7 @@ static NTSTATUS add_to_keytab_entries(TALLOC_CTX *mem_ctx, ADD_TO_ARRAY(mem_ctx, struct libnet_keytab_entry, entry, &ctx->entries, &ctx->count); + NT_STATUS_HAVE_NO_MEMORY(ctx->entries); return NT_STATUS_OK; }