summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-10-25 04:29:35 +0000
committerTim Potter <tpot@samba.org>2000-10-25 04:29:35 +0000
commit888643b981e2ac29d8e7c6dca6943381dfc84e58 (patch)
tree058a5eb270dd2acde88b31322d06ea2d56ee1fde
parentaf33ececd950174a63334632c109cd1db90e3523 (diff)
downloadsamba-888643b981e2ac29d8e7c6dca6943381dfc84e58.tar.gz
samba-888643b981e2ac29d8e7c6dca6943381dfc84e58.tar.bz2
samba-888643b981e2ac29d8e7c6dca6943381dfc84e58.zip
Removed erroneous +1's on length of unicode domain names for various
functions in the \\lsarpc pipe. (This used to be commit 30bb3f2df97662c6547c7994ce50efe9abf37968)
-rw-r--r--source3/rpc_server/srv_lsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa.c b/source3/rpc_server/srv_lsa.c
index 2e12f00bb6..9c3d785627 100644
--- a/source3/rpc_server/srv_lsa.c
+++ b/source3/rpc_server/srv_lsa.c
@@ -88,7 +88,7 @@ Init dom_query
static void init_dom_query(DOM_QUERY *d_q, char *dom_name, DOM_SID *dom_sid)
{
- int domlen = (dom_name != NULL) ? strlen(dom_name)+1 : 0;
+ int domlen = (dom_name != NULL) ? strlen(dom_name) : 0;
d_q->uni_dom_max_len = domlen * 2;
d_q->uni_dom_str_len = domlen * 2;
@@ -183,7 +183,7 @@ static int init_dom_ref(DOM_R_REF *ref, char *dom_name, DOM_SID *dom_sid)
ref->max_entries = MAX_REF_DOMAINS;
ref->num_ref_doms_2 = num+1;
- len = (dom_name != NULL) ? strlen(dom_name)+1 : 0;
+ len = (dom_name != NULL) ? strlen(dom_name) : 0;
if(dom_name != NULL && len == 0)
len = 1;