diff options
author | Ralf Haferkamp <rhafer@suse.de> | 2009-09-03 15:04:09 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-03 11:17:22 -0400 |
commit | c307d90d75cfc4de393ef4dedfcf1c4f38530ddc (patch) | |
tree | ca1be3ae636b3cc6491e464fb3b2e1b016d12ffa /server/providers | |
parent | 68b7346002778d917c01a9bb3433a86648872d82 (diff) | |
download | sssd-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')
-rw-r--r-- | server/providers/ldap/sdap_async.c | 4 |
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; } |