Fix bug in --address handling.
authorMartin Pool <mbp@samba.org>
Wed, 15 Aug 2001 05:07:29 +0000 (05:07 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 15 Aug 2001 05:07:29 +0000 (05:07 +0000)
options.c

index e672262..58b58de 100644 (file)
--- a/options.c
+++ b/options.c
@@ -471,7 +471,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
                case OPT_ADDRESS:
                        {
                                struct in_addr *ia;
-                               if ((ia = ip_address(optarg))) {
+                               if ((ia = ip_address (poptGetOptArg (pc)))) {
                                        socket_address = *ia;
                                }
                        }