summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gsmd/atcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsmd/atcmd.c b/src/gsmd/atcmd.c
index 2b5825a..4dc430f 100644
--- a/src/gsmd/atcmd.c
+++ b/src/gsmd/atcmd.c
@@ -113,7 +113,7 @@ static int llparse_byte(struct llparser *llp, char byte)
case LLPARSE_STATE_IDLE_CR:
if (byte == '\n')
llp->state = LLPARSE_STATE_IDLE_LF;
- else
+ else if (byte != '\r')
llp->state = LLPARSE_STATE_ERROR;
break;
case LLPARSE_STATE_IDLE_LF:
personal git repositories of Harald Welte. Your mileage may vary