Changeset 78d254f1
- Timestamp:
- 2010-03-18T00:07:16Z (15 years ago)
- Branches:
- master
- Children:
- b8a491d
- Parents:
- 42fc5b6
- Location:
- protocols/jabber
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/s5bytestream.c
r42fc5b6 r78d254f1 282 282 while( ( shnode = xt_find_node( shnode, "streamhost" ) ) ) 283 283 { 284 char *jid, *host ;284 char *jid, *host, *port_s; 285 285 int port; 286 286 if( ( jid = xt_find_attr( shnode, "jid" ) ) && 287 287 ( 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 ) ) 289 290 { 290 291 jabber_streamhost_t *sh = g_new0( jabber_streamhost_t, 1 ); -
protocols/jabber/si.c
r42fc5b6 r78d254f1 41 41 if( tf->fd != -1 ) 42 42 { 43 close( tf->fd );43 disconnect( tf->fd ); 44 44 tf->fd = -1; 45 45 } … … 52 52 g_free( tf->iq_id ); 53 53 g_free( tf->sid ); 54 g_free( tf ); 54 55 } 55 56 … … 204 205 { 205 206 struct xt_node *c, *d, *reply; 206 char *sid, *ini_jid, *tgt_jid, *iq_id, *s, *ext_jid ;207 char *sid, *ini_jid, *tgt_jid, *iq_id, *s, *ext_jid, *size_s; 207 208 struct jabber_buddy *bud; 208 209 int requestok = FALSE; … … 230 231 !( strcmp( xt_find_attr( d, "xmlns" ), XMLNS_FILETRANSFER ) == 0 ) || 231 232 !( name = xt_find_attr( d, "name" ) ) || 232 !( size = (size_t) atoll( xt_find_attr( d, "size" ) ) ) || 233 !( size_s = xt_find_attr( d, "size" ) ) || 234 !( 1 == sscanf( size_s, "%lld", &size ) ) || 233 235 !( d = xt_find_node( sinode->children, "feature" ) ) || 234 236 !( strcmp( xt_find_attr( d, "xmlns" ), XMLNS_FEATURE ) == 0 ) ||
Note: See TracChangeset
for help on using the changeset viewer.