Fix buggy if-condition (thomas poindessous <poinde_t@epita.fr>).
authorLutz Jänicke <jaenicke@openssl.org>
Thu, 21 Mar 2002 19:17:06 +0000 (19:17 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Thu, 21 Mar 2002 19:17:06 +0000 (19:17 +0000)
Submitted by:
Reviewed by:
PR:

demos/maurice/example1.c

index da2c6d31c566aae5ec35d23a2da9522987d28779..1ef829990065103d7573c6132747f845f50471cd 100644 (file)
@@ -72,7 +72,7 @@ void main_encrypt(void)
 
         pubKey[0] = ReadPublicKey(PUBFILE);
 
-       if(!pubKey)
+       if(!pubKey[0])
        {
            fprintf(stderr,"Error: can't load public key");
            exit(1);