genl: ix crash due to missing wrong prototype

In function genl_socket_talk().
This commit is contained in:
Pablo Neira Ayuso 2014-01-21 18:08:57 +01:00
parent acbbbc3e5a
commit e24258f4b1
2 changed files with 2 additions and 2 deletions

2
genl.h
View File

@ -7,7 +7,7 @@ struct nlmsghdr *genl_nlmsg_build_hdr(char *buf, uint16_t type, uint16_t flags,
uint32_t seq, uint8_t cmd);
struct mnl_socket *genl_socket_open(void);
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh,
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
int (*cb)(const struct nlmsghdr *nlh, void *data),
void *data);
int genl_lookup_family(struct mnl_socket *nl, const char *family);

View File

@ -60,7 +60,7 @@ int main(int argc, char *argv[])
for (i = 0; i < 1000000; i++) {
nlh = build_msg(genl_id, buf, i, gtp_ifidx);
if (genl_socket_talk(nl, nlh, NULL, NULL) < 0)
if (genl_socket_talk(nl, nlh, seq, NULL, NULL) < 0)
break;
}