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:
@@ -187,6 +187,8 @@ imath_rsa_public_decrypt(int flen, const unsigned char* from,
|
||||
mp_int_clear(&us);
|
||||
|
||||
/* head zero was skipped by mp_int_to_unsigned */
|
||||
if (*p == 0)
|
||||
return -7;
|
||||
if (*p != 1)
|
||||
return -6;
|
||||
size--; p++;
|
||||
|
Reference in New Issue
Block a user