samba-cvs.cvs
[Top] [All Lists]

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alp

Subject: [SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-619-g45f142f
From: Günther Deschner
Date: Mon, 9 Feb 2009 03:38:55 -0600 CST
The branch, master has been updated
       via  45f142fe29059accad5ff408e844ad3ae29e3b96 (commit)
      from  5d070483acf527ca20910c83d4735e1f99c32e24 (commit)

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


- Log -----------------------------------------------------------------
commit 45f142fe29059accad5ff408e844ad3ae29e3b96
Author: Günther Deschner <gd@xxxxxxxxx>
Date:   Mon Feb 9 00:06:36 2009 +0100

    s3-rpcclient: fix getform command asprintf return code.
    
    Guenther

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

Summary of changes:
 source3/rpcclient/cmd_spoolss.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 8003180..a7a7fef 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -1827,7 +1827,7 @@ static WERROR cmd_spoolss_getform(struct rpc_pipe_client 
*cli, TALLOC_CTX *mem_c
                return WERR_NOMEM;
        }
        strupper_m(servername);
-       if (asprintf(&printername, "%s\\%s", servername, argv[1])) {
+       if (asprintf(&printername, "%s\\%s", servername, argv[1]) == -1) {
                SAFE_FREE(servername);
                return WERR_NOMEM;
        }


-- 
Samba Shared Repository

<Prev in Thread] Current Thread [Next in Thread>
  • [SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-619-g45f142f, Günther Deschner <=