summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-11 22:47:25 -0800
committerJeremy Allison <jra@samba.org>2008-01-11 22:47:25 -0800
commitd9ee831d0ee7a950a7c8095182f1174026a56ad9 (patch)
tree40e6ca864a8ac239a2862d8dbb92580926cbcad1
parent6fa81523f86c5e136bf3ab2c5b0c9032570d3b96 (diff)
downloadsamba-d9ee831d0ee7a950a7c8095182f1174026a56ad9.tar.gz
samba-d9ee831d0ee7a950a7c8095182f1174026a56ad9.tar.bz2
samba-d9ee831d0ee7a950a7c8095182f1174026a56ad9.zip
Fix CID 524 - reference before allocation fail null check.
Jeremy. (This used to be commit a5cd3c9b65538588a6c982c6d20022e7476cf3de)
-rw-r--r--source3/rpc_server/srv_dfs_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_dfs_nt.c b/source3/rpc_server/srv_dfs_nt.c
index 690ddd60d6..29538a304f 100644
--- a/source3/rpc_server/srv_dfs_nt.c
+++ b/source3/rpc_server/srv_dfs_nt.c
@@ -133,10 +133,10 @@ WERROR _dfs_Remove(pipes_struct *p, struct dfs_Remove *r)
altpath = talloc_asprintf(ctx, "%s\\%s",
r->in.servername,
r->in.sharename);
- strlower_m(altpath);
if (!altpath) {
return WERR_NOMEM;
}
+ strlower_m(altpath);
DEBUG(5,("init_reply_dfs_remove: Request to remove %s -> %s\\%s.\n",
r->in.dfs_entry_path, r->in.servername, r->in.sharename));
}