diff mgw/crcx.c @ 34:7dae2bae56a1

themwi-mgw: implement MDCX parameter validation
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Jul 2022 23:17:15 -0800
parents b3f74df7b808
children 020ba624bdd8
line wrap: on
line diff
--- a/mgw/crcx.c	Sat Jul 09 22:52:44 2022 -0800
+++ b/mgw/crcx.c	Sat Jul 09 23:17:15 2022 -0800
@@ -108,7 +108,7 @@
 	case TMGW_EP_TYPE_GATEWAY:
 		break;
 	default:
-		resp->res = TMGW_RESP_ERR_PROT;
+		resp->res = TMGW_RESP_ERR_PARAM;
 		return;
 	}
 	ep = malloc(sizeof(struct endpoint));