Fix allocation of BTS from VTY
In 39315c47989326275823d1589425ee62d15bc823 we introduced
per-bts OML attribute parser definitions and disallowed
a BTS of type unknown.
However, the VTY code first allocates a BTS with unknown type.
diff --git a/openbsc/src/gsm_data.c b/openbsc/src/gsm_data.c
index 694ae06..1f2e1a1 100644
--- a/openbsc/src/gsm_data.c
+++ b/openbsc/src/gsm_data.c
@@ -191,7 +191,7 @@
if (!bts)
return NULL;
- if (!model) {
+ if (!model && type != GSM_BTS_TYPE_UNKNOWN) {
talloc_free(bts);
return NULL;
}