diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-17 20:34:53 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-17 20:34:53 +0200 |
commit | 1e9ae4be66eef151fec5cd08d532f6c1c191efed (patch) | |
tree | 1c0fef3731ee18e8ace5361d16c2cefb6d1243b8 /openbsc/src | |
parent | c0370e4399035c10f3484c2cc8118ae9e1c3fabe (diff) |
ipaccess: Fix the case of specifying the interface
Pablo pointed out that my previous commit was rubish. If we have
less than two arguments we want ifname to remain NULL and if we
have a second argument (or more) we want to use that as the interface
name to bind to.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/ipaccess/ipaccess-find.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-find.c b/openbsc/src/ipaccess/ipaccess-find.c index 4b5f6122a..3f9bf4140 100644 --- a/openbsc/src/ipaccess/ipaccess-find.c +++ b/openbsc/src/ipaccess/ipaccess-find.c @@ -175,6 +175,7 @@ int main(int argc, char **argv) if (argc < 2) { fprintf(stdout, "you might need to specify the outgoing\n" " network interface, e.g. ``%s eth0''\n", argv[0]); + } else { ifname = argv[1]; } |