The branch, v3-2-test has been updated
       via  8fa46f521d9bf39cfbeb055d3aa68820370e5c03 (commit)
      from  7460ed9a2773e374cae4eac0750759fc2f3fcb20 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 8fa46f521d9bf39cfbeb055d3aa68820370e5c03
Author: Günther Deschner <[EMAIL PROTECTED]>
Date:   Tue May 6 09:48:16 2008 +0200

    build: fix the build w/o ldap.
    
    Guenther
    (cherry picked from commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)

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

Summary of changes:
 source/libsmb/cliconnect.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c
index e0c18d8..ae16572 100644
--- a/source/libsmb/cliconnect.c
+++ b/source/libsmb/cliconnect.c
@@ -928,7 +928,9 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, 
const char *user,
 ntlmssp:
 
        account = talloc_strdup(talloc_tos(), user);
-       ADS_ERROR_HAVE_NO_MEMORY(account);
+       if (!account) {
+               return ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
+       }
 
        /* when falling back to ntlmssp while authenticating with a machine
         * account strip off the realm - gd */


-- 
Samba Shared Repository

Reply via email to