فهرست منبع

(listen_all) Fixed initialization of dcc[idx].addr6

svn: 131
Bryan Drewery 23 سال پیش
والد
کامیت
7c0e8e6706
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/dccutil.c

+ 1 - 1
src/dccutil.c

@@ -706,7 +706,7 @@ Context;
       else {
       else {
         idx = new_dcc(&DCC_TELNET, 0);
         idx = new_dcc(&DCC_TELNET, 0);
         dcc[idx].addr = notalloc;
         dcc[idx].addr = notalloc;
-        dcc[idx].addr6 = getmyip6();
+        strcpy(dcc[idx].addr6, getmyip6());
         dcc[idx].port = port;
         dcc[idx].port = port;
         dcc[idx].sock = i6;
         dcc[idx].sock = i6;
         dcc[idx].timeval = now;
         dcc[idx].timeval = now;