comparison libpurple/util.c @ 17035:0be41b604566

Patch #702, Info not reset on URL redirect
author Sean Egan <seanegan@gmail.com>
date Mon, 14 May 2007 19:55:01 +0000
parents 6d99246b1084
children cc9242ce1435 fdd52f7651c7
comparison
equal deleted inserted replaced
17034:d2353e780fd5 17035:0be41b604566
3283 3283
3284 purple_input_remove(gfud->inpa); 3284 purple_input_remove(gfud->inpa);
3285 gfud->inpa = 0; 3285 gfud->inpa = 0;
3286 close(gfud->fd); 3286 close(gfud->fd);
3287 gfud->fd = -1; 3287 gfud->fd = -1;
3288 gfud->request_written = 0;
3289 gfud->len = 0;
3290 gfud->data_len = 0;
3288 3291
3289 g_free(gfud->website.user); 3292 g_free(gfud->website.user);
3290 g_free(gfud->website.passwd); 3293 g_free(gfud->website.passwd);
3291 g_free(gfud->website.address); 3294 g_free(gfud->website.address);
3292 g_free(gfud->website.page); 3295 g_free(gfud->website.page);
3495 gfud->website.address, strerror(errno)); 3498 gfud->website.address, strerror(errno));
3496 return; 3499 return;
3497 } 3500 }
3498 gfud->request_written += len; 3501 gfud->request_written += len;
3499 3502
3500 if (gfud->request_written != total_len) 3503 if (gfud->request_written < total_len)
3501 return; 3504 return;
3502 3505
3503 /* We're done writing our request, now start reading the response */ 3506 /* We're done writing our request, now start reading the response */
3504 purple_input_remove(gfud->inpa); 3507 purple_input_remove(gfud->inpa);
3505 gfud->inpa = purple_input_add(gfud->fd, PURPLE_INPUT_READ, url_fetch_recv_cb, 3508 gfud->inpa = purple_input_add(gfud->fd, PURPLE_INPUT_READ, url_fetch_recv_cb,