|
|
| version 1.1.1.1.2.1, 2017/08/22 13:06:49 | version 1.1.1.2, 2021/03/17 19:50:23 |
|---|---|
| Line 158 sk_set_md5_in_sasp_db(sock *s, ip_addr local, ip_addr | Line 158 sk_set_md5_in_sasp_db(sock *s, ip_addr local, ip_addr |
| if (len > TCP_KEYLEN_MAX) | if (len > TCP_KEYLEN_MAX) |
| ERR_MSG("The password for TCP MD5 Signature is too long"); | ERR_MSG("The password for TCP MD5 Signature is too long"); |
| if (setkey_md5(&src, &dst, passwd, SADB_ADD) < 0 || | if ((setkey_md5(&src, &dst, passwd, SADB_ADD) < 0) || |
| setkey_md5(&dst, &src, passwd, SADB_ADD) < 0) | (setkey_md5(&dst, &src, passwd, SADB_ADD) < 0)) |
| ERR_MSG("Cannot add TCP-MD5 password into the IPsec SA/SP database"); | ERR_MSG("Cannot add TCP-MD5 password into the IPsec SA/SP database"); |
| } | } |
| else | else |
| { | { |
| if (setkey_md5(&src, &dst, NULL, SADB_DELETE) < 0 || | if ((setkey_md5(&src, &dst, NULL, SADB_DELETE) < 0) || |
| setkey_md5(&dst, &src, NULL, SADB_DELETE) < 0) | (setkey_md5(&dst, &src, NULL, SADB_DELETE) < 0)) |
| ERR_MSG("Cannot delete TCP-MD5 password from the IPsec SA/SP database"); | ERR_MSG("Cannot delete TCP-MD5 password from the IPsec SA/SP database"); |
| } | } |
| return 0; | return 0; |