summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mactelnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mactelnet.c b/mactelnet.c
index ff889c2..e69c88f 100644
--- a/mactelnet.c
+++ b/mactelnet.c
@@ -331,6 +331,7 @@ static int find_interface() {
/* Set the global socket handle for send_udp() */
send_socket = testsocket;
+ device_index = get_device_index(testsocket, devicename);
/* Send a SESSIONSTART message with the current device */
init_packet(&data, MT_PTYPE_SESSIONSTART, srcmac, dstmac, sessionkey, 0);