1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

krb5: fix a potential access of uninitialized memory

A scan-build warning.
This commit is contained in:
Daniel Stenberg 2017-12-13 00:36:39 +01:00
parent 41982b6ac9
commit 13ce373a5b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2,7 +2,7 @@
* *
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* Copyright (c) 2004 - 2016 Daniel Stenberg * Copyright (c) 2004 - 2017 Daniel Stenberg
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -282,6 +282,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
break; break;
} }
_gssresp.value = NULL; /* make sure it is initialized */
p = data->state.buffer + 4; p = data->state.buffer + 4;
p = strstr(p, "ADAT="); p = strstr(p, "ADAT=");
if(p) { if(p) {