summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-11-24 17:31:45 +0100
committerAndreas Schneider <asn@samba.org>2016-11-24 17:33:00 +0100
commit208a2e1649ad9e9ef19e0a48c928b07ebffeed90 (patch)
tree1385fbfd11d7f7c2bf78bfcdeecb4e87db8e3e89 /src
parent719e441931a883c94ca17f0fdb0efcf79a9a6015 (diff)
downloadgnutls-208a2e1649ad9e9ef19e0a48c928b07ebffeed90.tar.gz
certtool: One if check is enough
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/certtool.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/certtool.c b/src/certtool.c
index ef1a7a48e8..f142d7667e 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -2870,12 +2870,10 @@ void verify_pkcs7(common_info_st * cinfo, const char *purpose, unsigned display_
load_data(cinfo, &detached);
if (purpose) {
- if (purpose) {
- vdata[vdata_size].type = GNUTLS_DT_KEY_PURPOSE_OID;
- vdata[vdata_size].data = (void*)purpose;
- vdata[vdata_size].size = strlen(purpose);
- vdata_size++;
- }
+ vdata[vdata_size].type = GNUTLS_DT_KEY_PURPOSE_OID;
+ vdata[vdata_size].data = (void*)purpose;
+ vdata[vdata_size].size = strlen(purpose);
+ vdata_size++;
}
ecode = 1;