summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 4cdf284d..f6f99cbb 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1612,13 +1612,13 @@ bool parse_bindport_conf(const char *path, struct ProgramOption *option)
while (fgets(buf, sizeof(buf), fp))
{
- if (sscanf(buf, "%s %s", vprogram, vport) != 2 ||
+ if (sscanf(buf, "%s%s", vprogram, vport) != 2 ||
strcmp(vprogram, "mbbsd") != 0)
continue;
if (strcmp(vport, "tunnel") == 0)
{
- if (sscanf(buf, "%s %s %s", vprogram, vport, vopt) != 3)
+ if (sscanf(buf, "%*s%*s%s", vopt) != 1 || !*vopt)
{
fprintf(stderr, "error: invalid tunnel setting in %s.\r\n",
path);