diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-02-24 17:20:55 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-02-24 18:13:33 -0500 |
commit | 8cd4e488aadbb595cbaef13ca0a1ad3ef1ba7fb0 (patch) | |
tree | 41d97692bb5902cef406a08df7020f15bcc18b48 | |
parent | 57df88bb0b4ce656855410a8c2969d93475c2f11 (diff) | |
download | sssd-8cd4e488aadbb595cbaef13ca0a1ad3ef1ba7fb0.tar.gz sssd-8cd4e488aadbb595cbaef13ca0a1ad3ef1ba7fb0.tar.bz2 sssd-8cd4e488aadbb595cbaef13ca0a1ad3ef1ba7fb0.zip |
Fix SEGFAULT in CheckPermissions
-rw-r--r-- | server/infopipe/infopipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/infopipe/infopipe.c b/server/infopipe/infopipe.c index a4ab5e9e..e6df36d7 100644 --- a/server/infopipe/infopipe.c +++ b/server/infopipe/infopipe.c @@ -460,6 +460,7 @@ int infp_check_permissions(DBusMessage *message, struct sbus_conn_ctx *sconn) dbus_message_iter_recurse(&iter, &action_array_iter); count = 0; + permissions = NULL; while((current_type=dbus_message_iter_get_arg_type(&action_array_iter)) != DBUS_TYPE_INVALID) { if (current_type != DBUS_TYPE_STRUCT) { einval_msg = talloc_strdup(tmp_ctx, "Action array entry was not a struct"); @@ -500,7 +501,7 @@ int infp_check_permissions(DBusMessage *message, struct sbus_conn_ctx *sconn) /* Process the actions */ count++; - permissions=talloc_realloc(tmp_ctx, permissions,dbus_bool_t, count); + permissions=talloc_realloc(tmp_ctx, permissions, dbus_bool_t, count); permissions[count-1] = infp_get_permissions(username, domain, object_type, instance, action_type, attribute_type); |