mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 10:37:03 +02:00
minor fixes
Change-Id: I16d16df9db05219fefd918d2c977e6ee6cc9f5f0 Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
@ -272,7 +272,7 @@ int main(int argc, char **argv){
|
||||
else
|
||||
readlen = read(events[i].data.fd, (char*)&readbuf[0], sizeof(readbuf)-1);
|
||||
|
||||
if(cfg.verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "got %ld bytes to read", readlen);
|
||||
if(cfg.verbosity >= _LOG_DEBUG && readlen > 0) syslog(LOG_PRIORITY, "got %ld bytes to read", readlen);
|
||||
|
||||
if(readlen == -1){
|
||||
/* If errno == EAGAIN, that means we have read all data. So go back to the main loop. */
|
||||
|
@ -174,7 +174,6 @@ void handle_data(struct smtp_session *session, char *readbuf, int readlen){
|
||||
// process other SMTP commands
|
||||
|
||||
else {
|
||||
//printf("len=%d, buf=*%s*\n\n\n", readlen, readbuf);
|
||||
|
||||
if(session->buflen > 0){
|
||||
snprintf(puf, sizeof(puf)-1, "%s%s", session->buf, readbuf);
|
||||
|
Reference in New Issue
Block a user