commit | 8eb46c7b7ecc6e39719766875c3cbabad130b25f | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Sun Aug 22 17:05:37 2010 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Sun Aug 22 17:05:37 2010 -0400 |
tree | ccb3cb16c14ed08f6a68a0a12c2c52efd29e785b | |
parent | dc3275fb18610ef20cef810f42391f8e95f884cb [diff] |
Fix counting error in the set_serial_number weirdo hex handling check
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c index d5f5946..91550ca 100644 --- a/OpenSSL/crypto/x509.c +++ b/OpenSSL/crypto/x509.c
@@ -125,7 +125,7 @@ * is actually the result. I hope. -exarkun */ hexstr = PyBytes_AsString(hex); - if (hexstr[2] == 'x') { + if (hexstr[1] == 'x') { /* +2 to skip the "0x" */ hexstr += 2; }