6729ff
From 1545864a58c11e4b37f3950cdae457d3d2f5fd4e Mon Sep 17 00:00:00 2001
6729ff
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org>
6729ff
Date: Tue, 4 Feb 2014 16:38:46 +0100
6729ff
Subject: [PATCH] librpc/nbt: increase MAX_COMPONENTS limit for nbt_names.
6729ff
MIME-Version: 1.0
6729ff
Content-Type: text/plain; charset=UTF-8
6729ff
Content-Transfer-Encoding: 8bit
6729ff
6729ff
domains with more then 10 subdomains are not so uncommon.
6729ff
6729ff
https://bugzilla.samba.org/show_bug.cgi?id=10439
6729ff
6729ff
Guenther
6729ff
6729ff
Signed-off-by: Günther Deschner <gd@samba.org>
6729ff
Reviewed-by: Andreas Schneider <asn@samba.org>
6729ff
6729ff
Autobuild-User(master): Günther Deschner <gd@samba.org>
6729ff
Autobuild-Date(master): Thu Feb 13 16:30:50 CET 2014 on sn-devel-104
6729ff
6729ff
(cherry picked from commit 4e05bad0d18e351cb2a2db74860e77adea727c79)
6729ff
Signed-off-by: Andreas Schneider <asn@samba.org>
6729ff
---
6729ff
 librpc/ndr/ndr_nbt.c | 2 +-
6729ff
 1 file changed, 1 insertion(+), 1 deletion(-)
6729ff
6729ff
diff --git a/librpc/ndr/ndr_nbt.c b/librpc/ndr/ndr_nbt.c
6729ff
index f2a1ca3..842e972 100644
6729ff
--- a/librpc/ndr/ndr_nbt.c
6729ff
+++ b/librpc/ndr/ndr_nbt.c
6729ff
@@ -27,7 +27,7 @@
6729ff
 #include "../libcli/netlogon/netlogon.h"
6729ff
 
6729ff
 /* don't allow an unlimited number of name components */
6729ff
-#define MAX_COMPONENTS 10
6729ff
+#define MAX_COMPONENTS 128
6729ff
 
6729ff
 /**
6729ff
   print a nbt string
6729ff
-- 
6729ff
1.8.5.2
6729ff