Changeset c2fb3809 for protocols/jabber
- Timestamp:
- 2007-04-15T22:39:35Z (18 years ago)
- Branches:
- master
- Children:
- 84b045d
- Parents:
- cd4723c
- Location:
- protocols/jabber
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
rcd4723c rc2fb3809 118 118 119 119 imc_error( ic, "Short write() to server" ); 120 imc_logout( ic );120 imc_logout( ic, TRUE ); 121 121 return FALSE; 122 122 } … … 161 161 { 162 162 imc_error( ic, "XML stream error" ); 163 imc_logout( ic );163 imc_logout( ic, TRUE ); 164 164 return FALSE; 165 165 } … … 205 205 imc_error( ic, "TLS is turned on for this " 206 206 "account, but is not supported by this server" ); 207 imc_logout( ic );207 imc_logout( ic, FALSE ); 208 208 return FALSE; 209 209 } … … 217 217 { 218 218 imc_error( ic, "XML stream error" ); 219 imc_logout( ic );219 imc_logout( ic, TRUE ); 220 220 return FALSE; 221 221 } … … 228 228 229 229 imc_error( ic, "Error while reading from server" ); 230 imc_logout( ic );230 imc_logout( ic, TRUE ); 231 231 return FALSE; 232 232 } … … 243 243 { 244 244 imc_error( ic, "Could not connect to server" ); 245 imc_logout( ic );245 imc_logout( ic, TRUE ); 246 246 return FALSE; 247 247 } … … 264 264 265 265 imc_error( ic, "Could not connect to server" ); 266 imc_logout( ic );266 imc_logout( ic, TRUE ); 267 267 return FALSE; 268 268 } … … 275 275 static xt_status jabber_end_of_stream( struct xt_node *node, gpointer data ) 276 276 { 277 imc_logout( data );277 imc_logout( data, TRUE ); 278 278 return XT_ABORT; 279 279 } … … 298 298 { 299 299 imc_error( ic, "Server requires TLS connections, but TLS is turned off for this account" ); 300 imc_logout( ic );300 imc_logout( ic, FALSE ); 301 301 302 302 return XT_ABORT; … … 328 328 { 329 329 imc_error( ic, "TLS is turned on for this account, but is not supported by this server" ); 330 imc_logout( ic );330 imc_logout( ic, FALSE ); 331 331 332 332 return XT_ABORT; … … 429 429 struct xt_node *c; 430 430 char *s, *type = NULL, *text = NULL; 431 int allow_reconnect = TRUE; 431 432 432 433 for( c = node->children; c; c = c->next ) … … 453 454 { 454 455 imc_error( ic, "Unknown stream error reported by server" ); 455 imc_logout( ic );456 imc_logout( ic, allow_reconnect ); 456 457 return XT_ABORT; 457 458 } … … 463 464 { 464 465 imc_error( ic, "Account and resource used from a different location" ); 465 ic->wants_to_die = TRUE;466 allow_reconnect = FALSE; 466 467 } 467 468 else … … 470 471 } 471 472 472 imc_logout( ic );473 imc_logout( ic, allow_reconnect ); 473 474 474 475 return XT_ABORT; -
protocols/jabber/iq.c
rcd4723c rc2fb3809 40 40 { 41 41 imc_error( ic, "Received IQ packet without type." ); 42 imc_logout( ic );42 imc_logout( ic, TRUE ); 43 43 return XT_ABORT; 44 44 } … … 220 220 { 221 221 imc_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); 222 imc_logout( ic );222 imc_logout( ic, FALSE ); 223 223 return XT_HANDLED; 224 224 } … … 259 259 260 260 imc_error( ic, "Can't find suitable authentication method" ); 261 imc_logout( ic );261 imc_logout( ic, FALSE ); 262 262 return XT_ABORT; 263 263 } … … 278 278 { 279 279 imc_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); 280 imc_logout( ic );280 imc_logout( ic, FALSE ); 281 281 return XT_HANDLED; 282 282 } … … 285 285 { 286 286 imc_error( ic, "Authentication failure" ); 287 imc_logout( ic );287 imc_logout( ic, FALSE ); 288 288 return XT_ABORT; 289 289 } -
protocols/jabber/jabber.c
rcd4723c rc2fb3809 73 73 { 74 74 imc_error( ic, "Incomplete account name (format it like <username@jabberserver.name>)" ); 75 imc_logout( ic );75 imc_logout( ic, FALSE ); 76 76 return; 77 77 } … … 166 166 imc_log( ic, "Incorrect port number, must be in the %d-%d range", 167 167 JABBER_PORT_MIN, JABBER_PORT_MAX ); 168 imc_logout( ic );168 imc_logout( ic, FALSE ); 169 169 return; 170 170 } … … 187 187 { 188 188 imc_error( ic, "Could not connect to server" ); 189 imc_logout( ic );189 imc_logout( ic, TRUE ); 190 190 } 191 191 } -
protocols/jabber/sasl.c
rcd4723c rc2fb3809 45 45 if( !s || strcmp( s, XMLNS_SASL ) != 0 ) 46 46 { 47 imc_logout( ic ); 47 imc_log( ic, "Stream error while authenticating" ); 48 imc_logout( ic, FALSE ); 48 49 return XT_ABORT; 49 50 } … … 63 64 { 64 65 imc_error( ic, "No known SASL authentication schemes supported" ); 65 imc_logout( ic );66 imc_logout( ic, FALSE ); 66 67 return XT_ABORT; 67 68 } … … 280 281 error: 281 282 imc_error( ic, "Incorrect SASL challenge received" ); 282 imc_logout( ic );283 imc_logout( ic, FALSE ); 283 284 284 285 silent_error: … … 303 304 if( !s || strcmp( s, XMLNS_SASL ) != 0 ) 304 305 { 305 imc_logout( ic ); 306 imc_log( ic, "Stream error while authenticating" ); 307 imc_logout( ic, FALSE ); 306 308 return XT_ABORT; 307 309 } … … 315 317 { 316 318 imc_error( ic, "Authentication failure" ); 317 imc_logout( ic );319 imc_logout( ic, FALSE ); 318 320 return XT_ABORT; 319 321 }
Note: See TracChangeset
for help on using the changeset viewer.