summaryrefslogtreecommitdiff
path: root/server/providers/ldap
diff options
context:
space:
mode:
authorRalf Haferkamp <rhafer@suse.de>2009-09-03 15:04:09 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-03 11:17:22 -0400
commitc307d90d75cfc4de393ef4dedfcf1c4f38530ddc (patch)
treeca1be3ae636b3cc6491e464fb3b2e1b016d12ffa /server/providers/ldap
parent68b7346002778d917c01a9bb3433a86648872d82 (diff)
downloadsssd-c307d90d75cfc4de393ef4dedfcf1c4f38530ddc.tar.gz
sssd-c307d90d75cfc4de393ef4dedfcf1c4f38530ddc.tar.bz2
sssd-c307d90d75cfc4de393ef4dedfcf1c4f38530ddc.zip
Avoid crash when timestamp is NULL
Check if the timestamp argument of sdap_save_group_recv is NULL before using it.
Diffstat (limited to 'server/providers/ldap')
-rw-r--r--server/providers/ldap/sdap_async.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/providers/ldap/sdap_async.c b/server/providers/ldap/sdap_async.c
index de8276d7..e13fba34 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;
}