Index: src/router/samba36/source3/libsmb/nterr.c
===================================================================
--- src/router/samba36/source3/libsmb/nterr.c	(revision 18451)
+++ src/router/samba36/source3/libsmb/nterr.c	(revision 18468)
@@ -703,4 +703,5 @@
 	}
 
+#ifdef VERBOSE_ERROR
 	while (nt_errs[idx].nt_errstr != NULL) {
 		if (NT_STATUS_V(nt_errs[idx].nt_errcode) ==
@@ -710,4 +711,5 @@
 		idx++;
 	}
+#endif
 
 	result = talloc_asprintf(talloc_tos(), "NT code 0x%08x",
@@ -725,4 +727,5 @@
 	int idx = 0;
 
+#ifdef VERBOSE_ERROR
 	while (nt_err_desc[idx].nt_errstr != NULL) {
 		if (NT_STATUS_V(nt_err_desc[idx].nt_errcode) == NT_STATUS_V(nt_code)) {
@@ -731,4 +734,5 @@
 		idx++;
 	}
+#endif
 
 	/* fall back to NT_STATUS_XXX string */
@@ -746,4 +750,5 @@
 	int idx = 0;
 
+#ifdef VERBOSE_ERROR
 	while (nt_errs[idx].nt_errstr != NULL) {
 		if (NT_STATUS_V(nt_errs[idx].nt_errcode) ==
@@ -753,4 +758,5 @@
 		idx++;
 	}
+#endif
 
 	result = talloc_asprintf(talloc_tos(), "NT_STATUS(0x%08x)",
@@ -768,4 +774,5 @@
 	int idx = 0;
 
+#ifdef VERBOSE_ERROR
 	while (nt_errs[idx].nt_errstr != NULL) {
 		if (strcasecmp(nt_errs[idx].nt_errstr, nt_status_str) == 0) {
@@ -774,4 +781,5 @@
 		idx++;
 	}
+#endif
 	return NT_STATUS_UNSUCCESSFUL;
 }
