summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-02-23 11:59:02 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-02-23 11:59:02 +0100
commit59cdd34a3248acac61fd3edebca860066fd4c2fd (patch)
tree30e07e006413847d5dff929c03a44d99d9f09d96
parentd009537a6eceda1bdc5abddb50f41f2030d0dacc (diff)
downloadMAC-Telnet-59cdd34a3248acac61fd3edebca860066fd4c2fd.tar.gz
MAC-Telnet-59cdd34a3248acac61fd3edebca860066fd4c2fd.zip
Bugfix in mactelnet. Raw mode did not successfully autodetect outgoing interface.
-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);