Ignore:
Timestamp:
2010-03-18T00:07:16Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b8a491d
Parents:
42fc5b6
Message:

More small fixes. (NULL derefs and s/close/disconnect/)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/s5bytestream.c

    r42fc5b6 r78d254f1  
    282282        while( ( shnode = xt_find_node( shnode, "streamhost" ) ) )
    283283        {
    284                 char *jid, *host;
     284                char *jid, *host, *port_s;
    285285                int port;
    286286                if( ( jid = xt_find_attr( shnode, "jid" ) ) &&
    287287                    ( host = xt_find_attr( shnode, "host" ) ) &&
    288                     ( ( port = atoi( xt_find_attr( shnode, "port" ) ) ) ) )
     288                    ( port_s = xt_find_attr( shnode, "port" ) ) &&
     289                    ( sscanf( port_s, "%d", &port ) == 1 ) )
    289290                {
    290291                        jabber_streamhost_t *sh = g_new0( jabber_streamhost_t, 1 );
Note: See TracChangeset for help on using the changeset viewer.