summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cfgvti.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cfgvti.c b/src/cfgvti.c
index d3c1dc1..d982630 100644
--- a/src/cfgvti.c
+++ b/src/cfgvti.c
@@ -268,12 +268,13 @@ int main (int argc, char *argv[])
uval = htonl(tmp.s_addr);
} else {
errno = 0;
- uval = htonl(strtoul(*argv, 0, 0));
+ uval = strtoul(*argv, 0, 0);
if (errno) {
fprintf(stderr,
"Invalid \"mark\" %s\n", *argv);
exit(-1);
}
+ uval = htonl(uval);
}
mark = uval;
} else if (strcmp(*argv, "remote") == 0) {