]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 e6722623d58f924e4a40bb6e4e28efec6039304f..58b58de6e2610a8ff72b4789ea027d4140736a48 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;
                                }
                        }