Check if header is there

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19200 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-02 08:49:16 +00:00
parent 9d9e6a7778
commit 548ec1a806

View File

@@ -187,6 +187,8 @@ imath_rsa_public_decrypt(int flen, const unsigned char* from,
mp_int_clear(&us); mp_int_clear(&us);
/* head zero was skipped by mp_int_to_unsigned */ /* head zero was skipped by mp_int_to_unsigned */
if (*p == 0)
return -7;
if (*p != 1) if (*p != 1)
return -6; return -6;
size--; p++; size--; p++;