summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-16 23:10:20 +0200
committerMichael Adam <obnox@samba.org>2008-08-01 16:04:39 +0200
commitc1b9eb278fcc37cc9d286c830236af4532a5bf76 (patch)
tree1910256aa6a7f63b3884edda5cd3af695c7d2881 /source3
parent2473888daa3a732fdb7ae69729ab7e3490ffac64 (diff)
downloadsamba-c1b9eb278fcc37cc9d286c830236af4532a5bf76.tar.gz
samba-c1b9eb278fcc37cc9d286c830236af4532a5bf76.tar.bz2
samba-c1b9eb278fcc37cc9d286c830236af4532a5bf76.zip
dssync keytab: add check for success of ADD_TO_ARRAY().
Michael (This used to be commit e6f6e61da46f02bb2676c705974adc26bdfa2623)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_dssync_keytab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libnet/libnet_dssync_keytab.c b/source3/libnet/libnet_dssync_keytab.c
index c502211b45..a2ce8ddcaa 100644
--- a/source3/libnet/libnet_dssync_keytab.c
+++ b/source3/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;
}