summaryrefslogtreecommitdiff
path: root/lib/krb5.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-12-25 21:41:14 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-12-27 23:39:26 +0100
commit21248e052dbd0db33e8999aeeb919fb6f32c9567 (patch)
tree3345ae3b11c349ea56a58a387083fece2673e60c /lib/krb5.c
parentacaa79f961a6fd4cde83ea16b5fb85f0a32c7f23 (diff)
downloadcurl-21248e052dbd0db33e8999aeeb919fb6f32c9567.tar.gz
checksrc: detect more kinds of NULL comparisons we avoid
Co-authored-by: Jay Satiro Closes #8180
Diffstat (limited to 'lib/krb5.c')
-rw-r--r--lib/krb5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index afe425b04..5edd34cbd 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -880,7 +880,7 @@ Curl_sec_login(struct Curl_easy *data, struct connectdata *conn)
void
Curl_sec_end(struct connectdata *conn)
{
- if(conn->mech != NULL && conn->mech->end)
+ if(conn->mech && conn->mech->end)
conn->mech->end(conn->app_data);
free(conn->app_data);
conn->app_data = NULL;