Also true, but in that case you still end up accessing uninitialized
data. Also note that e. g. inet_bind() checks explicitely for that and
it's not clear to me why netlink_bind() is different. Maybe you just
help me figuring out.
Another point is that simply calling
bind(nl_fd, (struct sockaddr *)&an_int, sizeof(int));
will not return EINVAL but depends on the randomn data after an_int.
/holger
-