FreeCalypso > hg > themwi-system-sw
comparison 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 |
comparison
equal
deleted
inserted
replaced
33:2b072ad13de6 | 34:7dae2bae56a1 |
---|---|
106 case TMGW_EP_TYPE_DUMMY_GSM: | 106 case TMGW_EP_TYPE_DUMMY_GSM: |
107 case TMGW_EP_TYPE_DUMMY_PSTN: | 107 case TMGW_EP_TYPE_DUMMY_PSTN: |
108 case TMGW_EP_TYPE_GATEWAY: | 108 case TMGW_EP_TYPE_GATEWAY: |
109 break; | 109 break; |
110 default: | 110 default: |
111 resp->res = TMGW_RESP_ERR_PROT; | 111 resp->res = TMGW_RESP_ERR_PARAM; |
112 return; | 112 return; |
113 } | 113 } |
114 ep = malloc(sizeof(struct endpoint)); | 114 ep = malloc(sizeof(struct endpoint)); |
115 if (!ep) { | 115 if (!ep) { |
116 syslog(LOG_CRIT, "malloc for endpoint: %m"); | 116 syslog(LOG_CRIT, "malloc for endpoint: %m"); |