Bug 1268745 - follow-up fixing scan-build issue, r=mt
authorFranziskus Kiefer <franziskuskiefer@gmail.com>
Wed, 24 Aug 2016 12:44:06 +0200
changeset 12499 71da21e9d6e9cfde484402bb58ab2c9ebd838967
parent 12498 2568d4d26210be4c1189358920d2b9253ed26da7
child 12500 b4312374170a6ed632d2ccb6f02d9a4ad43f15ad
push id1496
push userfranziskuskiefer@gmail.com
push dateWed, 24 Aug 2016 10:44:36 +0000
reviewersmt
bugs1268745
Bug 1268745 - follow-up fixing scan-build issue, r=mt
lib/ssl/ssl3con.c
--- a/lib/ssl/ssl3con.c
+++ b/lib/ssl/ssl3con.c
@@ -3076,17 +3076,17 @@ ssl3_CompressMACEncryptRecord(ssl3Cipher
         SSL3ProtocolVersion version = cwSpec->version;
 
         if (capRecordVersion || version >= SSL_LIBRARY_VERSION_TLS_1_3) {
             version = PR_MIN(SSL_LIBRARY_VERSION_TLS_1_0, version);
         }
 
         b = ssl_EncodeUintX(version, 2, b);
     }
-    b = ssl_EncodeUintX(cipherBytes, 2, b);
+    (void)ssl_EncodeUintX(cipherBytes, 2, b);
 
     ++cwSpec->write_seq_num;
 
     return SECSuccess;
 }
 
 /* Process the plain text before sending it.
  * Returns the number of bytes of plaintext that were successfully sent