From c307d90d75cfc4de393ef4dedfcf1c4f38530ddc Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 3 Sep 2009 15:04:09 +0200 Subject: Avoid crash when timestamp is NULL Check if the timestamp argument of sdap_save_group_recv is NULL before using it. --- server/providers/ldap/sdap_async.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/providers/ldap/sdap_async.c b/server/providers/ldap/sdap_async.c index de8276d74..e13fba348 100644 --- a/server/providers/ldap/sdap_async.c +++ b/server/providers/ldap/sdap_async.c @@ -1246,7 +1246,9 @@ static int sdap_save_group_recv(struct tevent_req *req, return err; } - *timestamp = talloc_steal(mem_ctx, state->timestamp); + if ( timestamp ) { + *timestamp = talloc_steal(mem_ctx, state->timestamp); + } return EOK; } -- cgit