]> git.ipfire.org Git - people/ms/rstp.git/blobdiff - libnetlink.c
RSTP testing - PATCH: Typo in libnetlink.c
[people/ms/rstp.git] / libnetlink.c
index 2fb76b2347f19042a39b8ff17e246b68261ca255..7752236c4aa993356d0b981ed549f3895a235f0b 100644 (file)
@@ -37,7 +37,7 @@ int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions,
        int sndbuf = 32768;
        int rcvbuf = 32768;
 
-       memset(rth, 0, sizeof(rth));
+       memset(rth, 0, sizeof(*rth));
 
        rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol);
        if (rth->fd < 0) {