Skip to content

Commit

Permalink
add missing \r\n (jon)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstevns committed Mar 10, 2009
1 parent 60f1804 commit 3ba78e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
23 changes: 9 additions & 14 deletions src/dbmail-message.c
Original file line number Diff line number Diff line change
Expand Up @@ -1482,22 +1482,17 @@ static int _header_name_get_id(const DbmailMessage *self, const char *header, u6

static u64_t _header_value_exists(C c, const char *value, const char *hash)
{
R r;
u64_t id = 0; const char *data; size_t buflen;
int l;
R r; S s;
u64_t id = 0;

buflen = strlen(value);
db_con_clear(c);

r = db_query(c, "SELECT id,headervalue FROM %sheadervalue WHERE hash='%s'", DBPFX, hash);
while (db_result_next(r)) {
u64_t i = db_result_get_u64(r,0);
data = (char *)db_result_get_blob(r, 1, &l);
assert(data);
if (memcmp((gconstpointer)value, (gconstpointer)data, buflen)==0) {
id = i;
break;
}
}
s = db_stmt_prepare(c, "SELECT id FROM %sheadervalue WHERE hash=? and headervalue=?", DBPFX);
db_stmt_set_str(s,1 , hash);
db_stmt_set_blob(s, 2, value, strlen(value));

if (db_result_next(r))
id = db_result_get_u64(r,0);

return id;

Expand Down
2 changes: 1 addition & 1 deletion src/pop3.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ int pop3(ClientSession_t *session, const char *buffer)

if (session->ci->ssl_state)
return pop3_error(session, "-ERR TLS already active\r\n");
ci_write(session->ci, "+OK Begin TLS now");
ci_write(session->ci, "+OK Begin TLS now\r\n");
if (ci_starttls(session->ci) < 0) return 0;
return 1;

Expand Down

0 comments on commit 3ba78e6

Please sign in to comment.