diff --git a/indra/newview/llviewernetwork.cpp b/indra/newview/llviewernetwork.cpp
index 1ab1b163bfc9d659c849fb103e18ff32eb9f142d..4a8fd020d43fb734fc7856c446615ad6fef1de6a 100755
--- a/indra/newview/llviewernetwork.cpp
+++ b/indra/newview/llviewernetwork.cpp
@@ -495,7 +495,7 @@ void LLGridManager::addRemoteGrid(const std::string& login_uri)
 		grid.insert(0, "http://");
 	}
 	LLSD data;
-	data[GRID_VALUE] = LLURI(grid_value).authority();
+	data[GRID_VALUE] = LLURI(grid).authority();
 	
 	LLHTTPClient::get(llformat("%s/get_grid_info", grid.c_str()),
 					  new LLGridInfoRequestResponder(this, data));