diff options
author | Günther Deschner <gd@samba.org> | 2009-02-09 00:06:36 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-09 10:38:30 +0100 |
commit | 45f142fe29059accad5ff408e844ad3ae29e3b96 (patch) | |
tree | fbdc22857da2af8f367335cb55300eeb0666e1bf | |
parent | 5d070483acf527ca20910c83d4735e1f99c32e24 (diff) | |
download | samba-45f142fe29059accad5ff408e844ad3ae29e3b96.tar.gz samba-45f142fe29059accad5ff408e844ad3ae29e3b96.tar.bz2 samba-45f142fe29059accad5ff408e844ad3ae29e3b96.zip |
s3-rpcclient: fix getform command asprintf return code.
Guenther
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 8003180fda..a7a7fef6ec 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; } |