Don't accect zero length hex numbers.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20861 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-03 20:18:29 +00:00
parent 076b535751
commit f59f7099cc

View File

@@ -51,7 +51,7 @@ der_parse_hex_heim_integer (const char *p, heim_integer *data)
}
len = strlen(p);
if (len < 0) {
if (len <= 0) {
data->data = NULL;
data->length = 0;
return EINVAL;