Browse code

another switch where PROTO_SCTP was missing - added case

Michal Matyska authored on 11/12/2008 19:12:41
Showing 1 changed files
... ...
@@ -3014,6 +3014,12 @@ inline static int dns_srv_sip_resolve(struct dns_srv_handle* h,  str* name,
3014 3014
 							tmp[SRV_TLS_PREFIX_LEN + name->len] = '\0';
3015 3015
 							len=SRV_TLS_PREFIX_LEN + name->len;
3016 3016
 							break;
3017
+						case PROTO_SCTP:
3018
+							memcpy(tmp, SRV_SCTP_PREFIX, SRV_SCTP_PREFIX_LEN);
3019
+							memcpy(tmp+SRV_SCTP_PREFIX_LEN, name->s, name->len);
3020
+							tmp[SRV_SCTP_PREFIX_LEN + name->len] = '\0';
3021
+							len=SRV_SCTP_PREFIX_LEN + name->len;
3022
+							break;
3017 3023
 						default:
3018 3024
 							LOG(L_CRIT, "BUG: sip_resolvehost: "
3019 3025
 									"unknown proto %d\n", (int)srv_proto);