Review comments
authorRich Salz <rsalz@openssl.org>
Mon, 9 Jan 2017 17:42:15 +0000 (12:42 -0500)
committerRich Salz <rsalz@openssl.org>
Tue, 10 Jan 2017 03:26:47 +0000 (22:26 -0500)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2052)

ssl/s3_lib.c
ssl/ssl_locl.h
ssl/ssl_sess.c

index 0f6e94844a861c8d664f8cd4556438d7ab52c018..4010985f23f524b604166d6b9edfc2bdd4589f09 100644 (file)
@@ -3237,7 +3237,7 @@ long ssl3_callback_ctrl(SSL *s, int cmd, void (*fp) (void))
 #endif
     case SSL_CTRL_SET_TLSEXT_DEBUG_CB:
         s->ext.debug_cb = (void (*)(SSL *, int, int,
-                                       const unsigned char *, int, void *))fp;
+                                    const unsigned char *, int, void *))fp;
         break;
 
     case SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB:
index 84a91a125f81f9fac072b0d6c7bff9030d1b734f..641438dfe38542269f5925bd54f0e841ff7d654c 100644 (file)
@@ -1032,8 +1032,8 @@ struct ssl_st {
 
     struct {
         /* TLS extension debug callback */
-        void (*debug_cb) (SSL *s, int client_server, int type,
-                                 const unsigned char *data, int len, void *arg);
+        void (*debug_cb)(SSL *s, int client_server, int type,
+                         const unsigned char *data, int len, void *arg);
         void *debug_arg;
         char *hostname;
         /* certificate status request info */
index df49d85cae4efdf76b373c03067d9a24c0862549..0ea74389c2ac7abb97cd0a31669e1b2400182395 100644 (file)
@@ -961,7 +961,7 @@ int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len)
             return 0;
         }
 
-        if (ext_data) {
+        if (ext_data != NULL) {
             s->ext.session_ticket->length = ext_len;
             s->ext.session_ticket->data = s->ext.session_ticket + 1;
             memcpy(s->ext.session_ticket->data, ext_data, ext_len);