fix warn_unused_result warnings
authorDr. Stephen Henson <steve@openssl.org>
Wed, 6 Aug 2014 20:51:00 +0000 (21:51 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 6 Aug 2014 20:59:15 +0000 (21:59 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/s_server.c
crypto/conf/conf_api.c

index fe33b41f6505ff5ab91ac6fdba679e822cb2b2a5..a6af637bcfb61185b7eb1d56f6a2112bbc819e0c 100644 (file)
@@ -1930,8 +1930,10 @@ again:
 #ifdef CHARSET_EBCDIC
                                        ascii2ebcdic(buf,buf,i);
 #endif
-                                       write(fileno(stdout),buf,
-                                               (unsigned int)i);
+                                       if (write(fileno(stdout),buf,
+                                               (unsigned int)i) != i)
+                                               goto err;
+                                               
                                        if (SSL_pending(con)) goto again;
                                        break;
                                case SSL_ERROR_WANT_WRITE:
index 17bae8359f0c2a0da28bc891ac33b865426ed8bf..55d1d5064268eb72e8ee853cb1faa8fd157e8fbc 100644 (file)
@@ -294,7 +294,7 @@ CONF_VALUE *_CONF_new_section(CONF *conf, const char *section)
        v->value=(char *)sk;
        
        vv=(CONF_VALUE *)lh_insert(conf->data,v);
-       assert(vv == NULL);
+       OPENSSL_assert(vv == NULL);
        ok=1;
 err:
        if (!ok)