librpc/nbt: increase MAX_COMPONENTS limit for nbt_names.
authorGünther Deschner <gd@samba.org>
Tue, 4 Feb 2014 15:38:46 +0000 (16:38 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 15:30:49 +0000 (16:30 +0100)
domains with more then 10 subdomains are not so uncommon.

https://bugzilla.samba.org/show_bug.cgi?id=10439

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Feb 13 16:30:50 CET 2014 on sn-devel-104

librpc/ndr/ndr_nbt.c

index f2a1ca3ba5fff4f1f28f7c2037c38dbf60b2e870..842e9720c32f0753b71737d74c477cf810a495c3 100644 (file)
@@ -27,7 +27,7 @@
 #include "../libcli/netlogon/netlogon.h"
 
 /* don't allow an unlimited number of name components */
-#define MAX_COMPONENTS 10
+#define MAX_COMPONENTS 128
 
 /**
   print a nbt string