Changeset 779 for branches


Ignore:
Timestamp:
10/02/06 00:56:39 (6 years ago)
Author:
wd
Message:

Fix logic bomb in get_address_type. Hrm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/source/socket.c

    r778 r779  
    10171017 
    10181018#ifdef INET6 
    1019     if ((s = strchr(addr, ':') != NULL) && strchr(s + 1, ':') != NULL) { 
     1019    s = strchr(addr, ':'); 
     1020    if (s != NULL && strchr(s + 1, ':') != NULL) { 
    10201021        /* either IPv6 or nothing, let's see */ 
    10211022        if (inet_pton(PF_INET6, addr, buf) == 1) 
Note: See TracChangeset for help on using the changeset viewer.