summaryrefslogtreecommitdiff
path: root/daemon/pk/gkr-pk-object.c
diff options
context:
space:
mode:
authorStefan Walter <stefw@src.gnome.org>2009-02-02 12:58:29 +0000
committerStefan Walter <stefw@src.gnome.org>2009-02-02 12:58:29 +0000
commitcb4189d901f9e2bd945d24d9baefb81ea7eb4387 (patch)
treea429e3d96a398a56b4e924fbd75db08ff8b16d68 /daemon/pk/gkr-pk-object.c
parenta76840a8140a19a0817cce3cba73c3b71ac9be8b (diff)
Fix more size problems when using constants with varargs. Fixes bug
* daemon/pk/gkr-pk-cert.c: * daemon/pk/gkr-pk-import.c: * daemon/pk/gkr-pk-object.c: * daemon/pk/gkr-pk-privkey.c: * daemon/pk/gkr-pk-pubkey.c: * daemon/pk/gkr-pk-util.c: * gp11/gp11-attributes.c: * gp11/gp11-object.c: * gp11/tests/unit-test-gp11-attributes.c: * gp11/tests/unit-test-gp11-object.c: * gp11/tests/unit-test-gp11-session.c: * pkcs11/gck/gck-attributes.c: * pkcs11/gck/gck-private-key.c: * pkcs11/gck/gck-public-key.c: * pkcs11/gck/gck-session.c: * pkcs11/ssh-agent/gck-ssh-agent-ops.c: * pkcs11/ssh-agent/gck-ssh-agent-proto.c: * tools/gkr-tool-import.c: Fix more size problems when using constants with varargs. Fixes bug #569736. Research by Christophe Fergeau svn path=/trunk/; revision=1492
Diffstat (limited to 'daemon/pk/gkr-pk-object.c')
-rw-r--r--daemon/pk/gkr-pk-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/pk/gkr-pk-object.c b/daemon/pk/gkr-pk-object.c
index 9cc33185..14e3c205 100644
--- a/daemon/pk/gkr-pk-object.c
+++ b/daemon/pk/gkr-pk-object.c
@@ -539,7 +539,7 @@ gkr_pk_object_create (GkrPkSession *session,
g_return_val_if_fail (*object != NULL, CKR_GENERAL_ERROR);
/* Mark these bits as used */
- gkr_pk_attributes_consume (attrs, CKA_CLASS, CKA_TOKEN, -1);
+ gkr_pk_attributes_consume (attrs, CKA_CLASS, CKA_TOKEN, G_MAXULONG);
/*
* Check that all the remaining attributes are either already