git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a026311
)
libndr: give an error when ndr_push_relative_ptr2_start()/_end() is used with the...
author
Stefan Metzmacher
<metze@samba.org>
Wed, 17 Feb 2010 19:27:08 +0000
(20:27 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Fri, 19 Feb 2010 11:30:23 +0000
(12:30 +0100)
metze
(cherry picked from commit
b5f9c44da55abb28222441a7e064a2a25891981f
)
librpc/ndr/ndr.c
patch
|
blob
|
history
diff --git
a/librpc/ndr/ndr.c
b/librpc/ndr/ndr.c
index c3759985e83e665d4cf06f1da2fb7d19a3093b04..15510d62162678bae46b372613e1a0a766b965c1 100644
(file)
--- a/
librpc/ndr/ndr.c
+++ b/
librpc/ndr/ndr.c
@@
-1078,7
+1078,12
@@
_PUBLIC_ enum ndr_err_code ndr_push_relative_ptr2_start(struct ndr_push *ndr, co
if (p == NULL) {
return NDR_ERR_SUCCESS;
}
- return ndr_push_relative_ptr2(ndr, p);
+ if (!(ndr->flags & LIBNDR_FLAG_RELATIVE_REVERSE)) {
+ return ndr_push_relative_ptr2(ndr, p);
+ }
+
+ return ndr_push_error(ndr, NDR_ERR_RELATIVE,
+ "ndr_push_relative_ptr2_start RELATIVE_REVERSE flag set, but not supported");
}
/*