summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/atcmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gsmd/atcmd.c b/src/gsmd/atcmd.c
index 4dc430f..371dbb5 100644
--- a/src/gsmd/atcmd.c
+++ b/src/gsmd/atcmd.c
@@ -231,6 +231,7 @@ static int atcmd_done(struct gsmd *g, struct gsmd_atcmd *cmd, const char *buf)
}
rc = cmd->cb(cmd, cmd->ctx, cmd->resp);
DEBUGP("Clearing mlbuf\n");
+ memset(g->mlbuf, 0, MLPARSE_BUF_SIZE);
g->mlbuf_len = 0;
}
@@ -371,6 +372,7 @@ static int ml_parse(const char *buf, int len, void *ctx)
cmd->resp = g->mlbuf;
rc = cmd->cb(cmd, cmd->ctx, cmd->resp);
DEBUGP("Clearing mlbuf\n");
+ memset(g->mlbuf, 0, MLPARSE_BUF_SIZE);
}
g->mlbuf_len = 0;
}
personal git repositories of Harald Welte. Your mileage may vary