Commit 727d798d authored by Steve Holme's avatar Steve Holme
Browse files

pop3: Added debug information to assist with test864 failure

parent 3917d73b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -653,6 +653,8 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,

  (void)instate; /* no use for this yet */

  DEBUGF(infof(data, "Server Greeting: %s\n", line));

  if(pop3code != '+') {
    failf(data, "Got unexpected pop3-server response");
    result = CURLE_FTP_WEIRD_SERVER_REPLY;
@@ -676,6 +678,7 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,
          /* Copy the timestamp */
          memcpy(pop3c->apoptimestamp, line + i, timestamplen);
          pop3c->apoptimestamp[timestamplen] = '\0';
          DEBUGF(infof(data, "APOP Timestamp: %s\n", pop3c->apoptimestamp));
          break;
        }
      }