Fix buggy if-condition (thomas poindessous <poinde_t@epita.fr>).
authorLutz Jänicke <jaenicke@openssl.org>
Thu, 21 Mar 2002 19:16:02 +0000 (19:16 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Thu, 21 Mar 2002 19:16:02 +0000 (19:16 +0000)
demos/maurice/example1.c

index da2c6d3..1ef8299 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);