windows: Fix uninitialized variable in netlink-socket
The variable `request_nlmsg` was used without being initialized.
This patch assigns a value to it before being used.
Found by inspection.
@@ -888,6 +888,8 @@ nl_sock_transact_multiple__(struct nl_sock *sock,
}
if (reply_len != 0) {
+ request_nlmsg = nl_msg_nlmsghdr(txn->request);
+
if (reply_len < sizeof *reply_nlmsg) {
nl_sock_record_errors__(transactions, n, 0);
VLOG_DBG_RL(&rl, "insufficient length of reply %#"PRIu32
@@ -896,7 +898,6 @@ nl_sock_transact_multiple__(struct nl_sock *sock,
}
/* Validate the sequence number in the reply. */
- request_nlmsg = nl_msg_nlmsghdr(txn->request);
reply_nlmsg = (struct nlmsghdr *)reply_buf;
if (request_nlmsg->nlmsg_seq != reply_nlmsg->nlmsg_seq) {
