]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Check return code properly in fputs (< 0 is error).
authorDr. Stephen Henson <steve@openssl.org>
Mon, 16 Jul 2007 00:09:44 +0000 (00:09 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 16 Jul 2007 00:09:44 +0000 (00:09 +0000)
fips-1.0/hmac/fips_hmactest.c
fips-1.0/rsa/fips_rsagtest.c
fips-1.0/rsa/fips_rsastest.c
fips-1.0/rsa/fips_rsavtest.c

index 6ee4a26b13d17c7876d6379b48f7860bfa9dc1e7..59299f4cfa7754e78809dae2263fe1113ab17bf7 100644 (file)
@@ -176,7 +176,7 @@ int hmac_test(const EVP_MD *md, FILE *out, FILE *in)
                /* If no = or starts with [ (for [L=20] line) just copy */
                if (!p)
                        {
-                       if (!fputs(olinebuf, out))
+                       if (fputs(olinebuf, out) < 0)
                                goto error;
                        continue;
                        }
index f064162dab317f49209fae1b6c784f5d77f2ebbf..0ae2a293352df25324d23ca310bc96e900dd3259 100644 (file)
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
 
        if (!rsa_test(out, in))
                {
-               fprintf(stderr, "FATAL RSAVTEST file processing error\n");
+               fprintf(stderr, "FATAL RSAGTEST file processing error\n");
                goto end;
                }
        else
@@ -174,7 +174,7 @@ int rsa_test(FILE *out, FILE *in)
                /* If no = or starts with [ (for [foo = bar] line) just copy */
                if (!p || *keyword=='[')
                        {
-                       if (!fputs(olinebuf, out))
+                       if (fputs(olinebuf, out) < 0)
                                goto error;
                        continue;
                        }
index da78f20671ecd22c564c414c6fdf28e0e56534f8..91047b741b12dc12a40489d4df24cc6bc56e58d0 100644 (file)
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
 
        if (!rsa_stest(out, in, Saltlen))
                {
-               fprintf(stderr, "FATAL RSAVTEST file processing error\n");
+               fprintf(stderr, "FATAL RSASTEST file processing error\n");
                goto end;
                }
        else
@@ -190,7 +190,7 @@ int rsa_stest(FILE *out, FILE *in, int Saltlen)
                /* If no = just copy */
                if (!p)
                        {
-                       if (!fputs(olinebuf, out))
+                       if (fputs(olinebuf, out) < 0)
                                goto error;
                        continue;
                        }
index edfa0cfbbf496cfaab0b85dd9bbfd62e61e95e36..13dc09a03f66501242bba777138045514b57759b 100644 (file)
@@ -193,7 +193,7 @@ int rsa_test(FILE *out, FILE *in, int Saltlen)
                /* If no = or starts with [ (for [foo = bar] line) just copy */
                if (!p || *keyword=='[')
                        {
-                       if (!fputs(olinebuf, out))
+                       if (fputs(olinebuf, out) < 0)
                                goto error;
                        continue;
                        }