gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 69/125: krb5: fix a potential access of uninitializ


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 69/125: krb5: fix a potential access of uninitialized memory
Date: Sun, 21 Jan 2018 23:42:04 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 13ce373a5b878023a0dbf367d3e1c9282df634f1
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Dec 13 00:36:39 2017 +0100

    krb5: fix a potential access of uninitialized memory
    
    A scan-build warning.
---
 lib/krb5.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]