diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-03-16 12:27:50 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-03-16 12:27:50 +0000 |
commit | d3efbd7284848fd38529325d5665f3979a2b2e2b (patch) | |
tree | fc53eacda9bd7412024c6557726524337b071293 /epan/dissectors/packet-ssl-utils.c | |
parent | 4efe662b04965c1842718257e7f23fd042a3ec64 (diff) |
Superfluous check on 'secret' removed.
Coverity CID 31
svn path=/trunk/; revision=17645
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.c')
-rw-r--r-- | epan/dissectors/packet-ssl-utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c index 65c350d946..e1b23dc5fe 100644 --- a/epan/dissectors/packet-ssl-utils.c +++ b/epan/dissectors/packet-ssl-utils.c @@ -549,8 +549,7 @@ ssl3_prf(StringInfo* secret, const char* usage, ssl_sha_init(&sha); ssl_sha_update(&sha,buf,i); - if (secret) - ssl_sha_update(&sha,secret->data,secret->data_len); + ssl_sha_update(&sha,secret->data,secret->data_len); if(!strcmp(usage,"client write key") || !strcmp(usage,"server write key")){ ssl_sha_update(&sha,rnd2->data,rnd2->data_len); |