Change the number of Miller-Rabin test for DSA generation to 64
[openssl.git] / apps / x509.c
index 11366425522446fd88daa52ccc67153fde5a1d7b..d40960c0b93f9fe0f2adb406fc461b4a56cf1c7c 100644 (file)
@@ -916,7 +916,7 @@ static ASN1_INTEGER *x509_load_serial(const char *CAfile,
     BIGNUM *serial = NULL;
 
     if (serialfile == NULL) {
-        const char *p = strchr(CAfile, '.');
+        const char *p = strrchr(CAfile, '.');
         size_t len = p != NULL ? (size_t)(p - CAfile) : strlen(CAfile);
 
         buf = app_malloc(len + sizeof(POSTFIX), "serial# buffer");