From da4f77daf36897e0d9235e6c9452242cd4e3d51d Mon Sep 17 00:00:00 2001 From: "Dan S. Camper" Date: Thu, 19 Sep 2024 12:51:41 -0500 Subject: [PATCH] Added a break, based on verbal code review comments --- common/remote/rmtsmtp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/remote/rmtsmtp.cpp b/common/remote/rmtsmtp.cpp index 481a054d51b..9afe5ff0c9a 100644 --- a/common/remote/rmtsmtp.cpp +++ b/common/remote/rmtsmtp.cpp @@ -680,7 +680,7 @@ class CMailInfo if (hasMoreOptions) { // Skip to the character past the end of the line - while (buffPtr < inbuff + inlen) + while (buffPtr < (inbuff + inlen)) { buffPtr++; if (*buffPtr == '\n') @@ -690,6 +690,10 @@ class CMailInfo } } } + else + { + break; + } } else {