]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-bounce: fix using the wrong variable
authorBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 9 Jan 2023 13:45:41 +0000 (14:45 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 9 Jan 2023 13:45:41 +0000 (14:45 +0100)
src/mlmmj-bounce.c

index 34e31364062493402fdab18315d3b39120a64aae..965bc4cb34929dc50f20bc5a03e44cfa2e94f7bc 100644 (file)
@@ -63,7 +63,7 @@ void do_probe(const char *listdir, const char *mlmmjsend, const char *addr,
        int fd;
        time_t t;
 
-       myaddr = xstrdup(addr);
+       myaddr = lowercase(addr);
 
        listaddr = getlistaddr(ctrlfd);
        listname = genlistname(listaddr);
@@ -231,7 +231,7 @@ int main(int argc, char **argv)
 
        if (probe) {
                /* send out a probe */
-               do_probe(listdir, mlmmjsend, address, listfd, ctrlfd);
+               do_probe(listdir, mlmmjsend, thisaddr, listfd, ctrlfd);
                /* do_probe() will never return */
                exit(EXIT_FAILURE);
        }