提交 763c520d authored 作者: Michael Jerris's avatar Michael Jerris

Wed May 13 11:07:04 CDT 2009 Pekka Pessi <first.last@nokia.com>

  * sip-dig.c: fixed buffer overrun
  Ignore-this: d8776bd28ef951602449e87d80dc20e7
  
  Coverity issue.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13338 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 52bcb7b3
Fri May 15 11:05:48 CDT 2009
Fri May 15 11:06:28 CDT 2009
......@@ -52,7 +52,6 @@
* The @e sip-dig utility accepts following command line options:
* <dl>
* <dt>-p <em>protoname</em></dt>
* <dd>Use named transport protocol. The <em>protoname</em> can be either
* well-known, e.g., "udp", or it can specify NAPTR service and SRV
* identifier, e.g., "tls-udp/SIPS+D2U/_sips._udp.".
......@@ -160,7 +159,7 @@ struct dig {
unsigned preference, ip4, ip6, sips, print;
struct transport tports[N_TPORT];
struct transport tports[N_TPORT + 1];
};
int dig_naptr(struct dig *dig, char const *host, double weight);
......@@ -370,7 +369,7 @@ int prepare_transport(struct dig *dig, char const *tport)
struct transport *tports = dig->tports;
int j;
for (j = 0; j < N_TPORT - 1; j++) {
for (j = 0; j < N_TPORT; j++) {
if (!tports[j].name)
break;
if (su_casematch(tports[j].name, tport))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论