Index: source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp
===================================================================
--- source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp	(revision 5556)
+++ source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp	(revision 5610)
@@ -146,4 +146,9 @@
 	sdp_session_ = 0;
 
+	if((name.length() > 256) || (info1.length() > 256) || (info2.length() > 256) || (info3.length() > 256)) {
+		logging_error("string argument too long, max size is 256");
+		return;
+	}
+
 	// prepare the info attribute buffers
 	//string namebuf, info1buf, info2buf, info3buf;
@@ -154,9 +159,4 @@
 	info2len = (uint8_t)info2.length();
 	info3len = (uint8_t)info3.length();
-
-	if((namelen > 256) || (info1len > 256) || (info2len > 256) || (info3len > 256)) {
-		logging_error("string argument too long, max size is 256!");
-		return;
-	}
 
 	// set the general service ID
