~ubuntu-branches/ubuntu/saucy/curl/saucy-security

« back to all changes in this revision

Viewing changes to lib/pop3.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2011-11-25 17:30:45 UTC
  • mfrom: (3.4.23 sid)
  • Revision ID: package-import@ubuntu.com-20111125173045-2l3ni88jv16kath0
Tags: 7.22.0-3ubuntu1
* Merge from Debian unstable, remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "setup.h"
28
28
 
29
29
#ifndef CURL_DISABLE_POP3
30
 
#include <stdio.h>
31
 
#include <string.h>
32
 
#include <stdlib.h>
33
 
#include <stdarg.h>
34
 
#include <ctype.h>
35
30
 
36
31
#ifdef HAVE_UNISTD_H
37
32
#include <unistd.h>
285
280
  conn->handler = &Curl_handler_pop3s;
286
281
}
287
282
#else
288
 
#define pop3_to_pop3s(x)
 
283
#define pop3_to_pop3s(x) Curl_nop_stmt
289
284
#endif
290
285
 
291
286
/* for STARTTLS responses */
575
570
  struct pop3_conn *pop3c = &conn->proto.pop3c;
576
571
  CURLcode result = Curl_pp_multi_statemach(&pop3c->pp);
577
572
 
578
 
  *done = (bool)(pop3c->state == POP3_STOP);
 
573
  *done = (pop3c->state == POP3_STOP) ? TRUE : FALSE;
579
574
 
580
575
  return result;
581
576
}
792
787
    result = pop3_easy_statemach(conn);
793
788
    *dophase_done = TRUE; /* with the easy interface we are done here */
794
789
  }
795
 
  *connected = conn->bits.tcpconnect;
 
790
  *connected = conn->bits.tcpconnect[FIRSTSOCKET];
796
791
 
797
792
  if(*dophase_done)
798
793
    DEBUGF(infof(conn->data, "DO phase is complete\n"));