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

index 0e70523a33666bdff6e1aaa80655c0dd5982d6d4..521527049dea20610d7601d880fd391732a88754 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);