]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/prefix.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / prefix.c
index 21c3af7d49e8f164a46e18278429708423952981..858f860ee8e1f8e99e169bc5fe75eae00a056739 100644 (file)
@@ -853,7 +853,7 @@ int str2prefix_ipv4(const char *str, struct prefix_ipv4 *p)
        /* String doesn't contail slash. */
        if (pnt == NULL) {
                /* Convert string to prefix. */
-               ret = inet_aton(str, &p->prefix);
+               ret = inet_pton(AF_INET, str, &p->prefix);
                if (ret == 0)
                        return 0;