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
This commit is contained in:
Michael Jerris 2009-05-15 16:06:43 +00:00
parent 52bcb7b396
commit 763c520d49
2 changed files with 3 additions and 4 deletions

View File

@ -1 +1 @@
Fri May 15 11:05:48 CDT 2009
Fri May 15 11:06:28 CDT 2009

View File

@ -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))