The branch, master has been updated
       via  76cd237... s4:web_server/wsgi.c - free the "env" and "inputstream" 
objects on an "asprintf" failure
       via  9bfd2c8... s4:auth/credentials/credentials.c - initialise 
"password_last_changed_time"
       via  f1d7d6d... nss_wrapper/testsuite.c - make sure to test always the 
"NSS wrapper" calls
      from  33c633d... s3:auth make it easier to trace auth modules

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 76cd237ee59a3301166ddcbc4166fc7a133e03e3
Author: Matthias Dieter Wallnöfer <[email protected]>
Date:   Sun May 30 11:01:25 2010 +0200

    s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an 
"asprintf" failure

commit 9bfd2c8ebc4d7dbd3fd6f47877d31e7e8f4721a5
Author: Matthias Dieter Wallnöfer <[email protected]>
Date:   Fri May 28 22:30:50 2010 +0200

    s4:auth/credentials/credentials.c - initialise "password_last_changed_time"
    
    Otherwise it could remain uninitialised.

commit f1d7d6d4df64b74ce00498e6cd9e49b2c0ec7ea0
Author: Matthias Dieter Wallnöfer <[email protected]>
Date:   Sat May 29 22:54:07 2010 +0200

    nss_wrapper/testsuite.c - make sure to test always the "NSS wrapper" calls
    
    This should fix bug #7319 and #7320.

-----------------------------------------------------------------------

Summary of changes:
 lib/nss_wrapper/testsuite.c            |    6 +++++-
 source4/auth/credentials/credentials.c |    2 ++
 source4/web_server/wsgi.c              |    2 ++
 3 files changed, 9 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/nss_wrapper/testsuite.c b/lib/nss_wrapper/testsuite.c
index da1a267..9f0b1ca 100644
--- a/lib/nss_wrapper/testsuite.c
+++ b/lib/nss_wrapper/testsuite.c
@@ -20,9 +20,13 @@
 */
 
 #include "includes.h"
+
+#ifndef NSS_WRAPPER
+#define NSS_WRAPPER
+#endif
+
 #include "torture/torture.h"
 #include "lib/replace/system/passwd.h"
-#include "lib/nss_wrapper/nss_wrapper.h"
 
 static bool copy_passwd(struct torture_context *tctx,
                        const struct passwd *pwd,
diff --git a/source4/auth/credentials/credentials.c 
b/source4/auth/credentials/credentials.c
index a129efe..8aff753 100644
--- a/source4/auth/credentials/credentials.c
+++ b/source4/auth/credentials/credentials.c
@@ -94,6 +94,8 @@ _PUBLIC_ struct cli_credentials 
*cli_credentials_init(TALLOC_CTX *mem_ctx)
 
        cred->kvno = 0;
 
+       cred->password_last_changed_time = 0;
+
        cred->smb_krb5_context = NULL;
 
        cred->machine_account_pending = false;
diff --git a/source4/web_server/wsgi.c b/source4/web_server/wsgi.c
index db1a5f2..bc55850 100644
--- a/source4/web_server/wsgi.c
+++ b/source4/web_server/wsgi.c
@@ -301,6 +301,8 @@ static PyObject *create_environ(bool tls, int 
content_length, struct http_header
                        PyDict_SetItemString(env, "CONTENT_TYPE", 
PyString_FromString(hdr->value));
                } else { 
                        if (asprintf(&name, "HTTP_%s", hdr->name) < 0) {
+                               Py_DECREF(env);
+                               Py_DECREF(inputstream);
                                PyErr_NoMemory();
                                return NULL;
                        }


-- 
Samba Shared Repository

Reply via email to