Module: sip-router
Branch: ser_core_cvs
Commit: e4c9fe9a983a8825a342ed085565a9fc15abeeea
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e4c9fe9…
Author: Michal Matyska <michal.matyska(a)iptel.org>
Committer: Michal Matyska <michal.matyska(a)iptel.org>
Date: Thu Dec 11 19:12:41 2008 +0000
another switch where PROTO_SCTP was missing - added case
---
dns_cache.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dns_cache.c b/dns_cache.c
index 14598e0..9a53fe4 100644
--- a/dns_cache.c
+++ b/dns_cache.c
@@ -3014,6 +3014,12 @@ inline static int dns_srv_sip_resolve(struct dns_srv_handle* h,
str* name,
tmp[SRV_TLS_PREFIX_LEN + name->len] = '\0';
len=SRV_TLS_PREFIX_LEN + name->len;
break;
+ case PROTO_SCTP:
+ memcpy(tmp, SRV_SCTP_PREFIX, SRV_SCTP_PREFIX_LEN);
+ memcpy(tmp+SRV_SCTP_PREFIX_LEN, name->s, name->len);
+ tmp[SRV_SCTP_PREFIX_LEN + name->len] = '\0';
+ len=SRV_SCTP_PREFIX_LEN + name->len;
+ break;
default:
LOG(L_CRIT, "BUG: sip_resolvehost: "
"unknown proto %d\n", (int)srv_proto);