mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
r14691: Fix printing elements with represent_as set
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
31e847a084
commit
f4428db2f9
@@ -917,6 +917,10 @@ sub ValidElement($)
|
||||
fatal($e, el_name($e) . " : represent_as() and transmit_as() can not be used on the same element");
|
||||
}
|
||||
|
||||
if (has_property($e, "represent_as") and has_property($e, "value")) {
|
||||
fatal($e, el_name($e) . " : represent_as() and value() can not be used on the same element");
|
||||
}
|
||||
|
||||
if (defined (has_property($e, "subcontext_size")) and not defined(has_property($e, "subcontext"))) {
|
||||
fatal($e, el_name($e) . " : subcontext_size() on non-subcontext element");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user