summaryrefslogtreecommitdiff
path: root/tools/libskrewt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libskrewt.c')
-rw-r--r--tools/libskrewt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libskrewt.c b/tools/libskrewt.c
index 595c3fe..37a9feb 100644
--- a/tools/libskrewt.c
+++ b/tools/libskrewt.c
@@ -52,6 +52,7 @@ void parse_content(const string type_spec_line,
}
int skrewt::krunch_rfrom(){
+ if (received_from == "") return 0; // probably a bounce message, no rfrom
stringstream parse;
parse.str(received_from);
string word;
@@ -62,7 +63,7 @@ int skrewt::krunch_rfrom(){
return ex_syserr;
}
parse >> proximta_rDNS;
- for (;;) {
+ for (;;) { // loop over words in this record
parse >> word;
size_t len = word.length();
if (len < 2) {