[gprs] correctly set the NS instance that BSSGP should use
diff --git a/openbsc/src/sgsn_main.c b/openbsc/src/sgsn_main.c
index 66d8efc..d9ea6a8 100644
--- a/openbsc/src/sgsn_main.c
+++ b/openbsc/src/sgsn_main.c
@@ -89,6 +89,8 @@
 	return rc;
 }
 
+/* NSI that BSSGP uses when transmitting on NS */
+extern struct gprs_ns_inst *bssgp_nsi;
 
 int main(int argc, char **argv)
 {
@@ -116,7 +118,7 @@
 		LOGP(DGPRS, LOGL_ERROR, "Unable to instantiate NS\n");
 		exit(1);
 	}
-	sgcfg.nsi = sgsn_nsi;
+	bssgp_nsi = sgcfg.nsi = sgsn_nsi;
 	nsip_listen(sgsn_nsi, sgcfg.nsip_listen_port);
 
 	while (1) {