summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-09 00:06:36 +0100
committerGünther Deschner <gd@samba.org>2009-02-09 10:38:30 +0100
commit45f142fe29059accad5ff408e844ad3ae29e3b96 (patch)
treefbdc22857da2af8f367335cb55300eeb0666e1bf /source3/rpcclient
parent5d070483acf527ca20910c83d4735e1f99c32e24 (diff)
downloadsamba-45f142fe29059accad5ff408e844ad3ae29e3b96.tar.gz
samba-45f142fe29059accad5ff408e844ad3ae29e3b96.tar.bz2
samba-45f142fe29059accad5ff408e844ad3ae29e3b96.zip
s3-rpcclient: fix getform command asprintf return code.
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_spoolss.c2
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;
}