Changeset 3335


Ignore:
Timestamp:
Dec 25, 2008, 2:57:00 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Fix a crash when only one session is detached
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/attach.c

    r3331 r3335  
    221221            {
    222222                usable_sockets[nb_usable_sockets] = strdup(sockets[i]);
     223                debug("%s is usable", usable_sockets[nb_usable_sockets]);
    223224                nb_usable_sockets++;
    224225                close(sock);
     
    229230        if(nb_usable_sockets == 1)
    230231        {
    231             ret = usable_sockets[0];
     232            ret = strdup(usable_sockets[0]);
    232233            goto end;
    233234        }
Note: See TracChangeset for help on using the changeset viewer.