gck: Fix crash when hashing an unsupported attributes
authorStef Walter <stefw@gnome.org>
Thu, 21 Mar 2013 17:32:07 +0000 (18:32 +0100)
committerStef Walter <stefw@gnome.org>
Fri, 22 Mar 2013 10:42:01 +0000 (11:42 +0100)
commit64bac1b8b9f6cf93a0e553ed7ee5540c135fbb53
tree7534e363c83efe224f2536b513d52870b3622fe7
parent36cd9c7497e10476c09557af503a703e9237ea12
gck: Fix crash when hashing an unsupported attributes

PKCS#11 modules return attributes with a negative length and a
NULL value, when they don't support the attribute in question.

https://bugzilla.gnome.org/show_bug.cgi?id=696305
gck/gck-attributes.c
gck/tests/test-gck-attributes.c