Skip to content
Snippets Groups Projects
Commit 225c4981 authored by rswindell's avatar rswindell
Browse files

Bugfix: couldn't receive telegrams, wasn't rewinding the recipient list file.

parent b0f13163
No related branches found
No related tags found
No related merge requests found
...@@ -1656,6 +1656,7 @@ static void smtp_thread(void* arg) ...@@ -1656,6 +1656,7 @@ static void smtp_thread(void* arg)
telegram_buf[length+strlen(str)]=0; /* Need ASCIIZ */ telegram_buf[length+strlen(str)]=0; /* Need ASCIIZ */
/* Send telegram to users */ /* Send telegram to users */
rewind(rcptlst);
rcpt_count=0; rcpt_count=0;
while(!feof(rcptlst) && rcpt_count<startup->max_recipients) { while(!feof(rcptlst) && rcpt_count<startup->max_recipients) {
if(fgets(str,sizeof(str),rcptlst)==NULL) if(fgets(str,sizeof(str),rcptlst)==NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment