summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-19 21:36:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:49 -0500
commitd5b6dedfdd1acb9a2340a04865308c7c3c975ffd (patch)
tree48ca4a5a82a4a3776c524c0a7369bc04b70e68d1 /source3/rpc_parse
parent3d672717e084f7a26ef60321d614a686dd803dbd (diff)
downloadsamba-d5b6dedfdd1acb9a2340a04865308c7c3c975ffd.tar.gz
samba-d5b6dedfdd1acb9a2340a04865308c7c3c975ffd.tar.bz2
samba-d5b6dedfdd1acb9a2340a04865308c7c3c975ffd.zip
r16365: Fix Klocwork #895, #898, #899, #915, #932, #938 and a
few other problems Klocwork missed. Jeremy. (This used to be commit fe05769a1a85f924c67be7e5dcee4871a86948d7)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_prs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index f2b002c48c..14e190892d 100644
--- a/source3/rpc_parse/parse_prs.c
+++ b/source3/rpc_parse/parse_prs.c
@@ -1469,11 +1469,12 @@ int tdb_prs_fetch(TDB_CONTEXT *tdb, char *keystr, prs_struct *ps, TALLOC_CTX *me
kbuf.dptr = keystr;
kbuf.dsize = strlen(keystr)+1;
+ prs_init(ps, 0, mem_ctx, UNMARSHALL);
+
dbuf = tdb_fetch(tdb, kbuf);
if (!dbuf.dptr)
return -1;
- prs_init(ps, 0, mem_ctx, UNMARSHALL);
prs_give_memory(ps, dbuf.dptr, dbuf.dsize, True);
return 0;