Changeset 131:ff27859dca64 in rrlib_util


Ignore:
Timestamp:
15.01.2015 12:35:37 (5 years ago)
Author:
Bernd Helge Leroch <leroch@…>
Branch:
13.10
Phase:
public
Message:

fixed issue in the context of name resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sFileIOUtils.cpp

    r98 r131  
    462462  RRLIB_LOG_PRINT(DEBUG_VERBOSE_1, Join(tokens, "\n")); 
    463463 
    464   assert(tokens.size() == 4); 
    465   RRLIB_LOG_PRINTF(USER, "found_name <%s> , ip <%s> \n", tokens[0].c_str(), tokens[3].c_str()); 
    466  
    467   inet_aton(tokens[3].c_str(), &address); 
     464  if (tokens.size() == 4) 
     465  { 
     466    RRLIB_LOG_PRINTF(USER, "found_name <%s> , ip <%s> \n", tokens[0].c_str(), tokens[3].c_str()); 
     467    inet_aton(tokens[3].c_str(), &address); 
     468  } 
    468469  return address; 
    469470} // HostToIpViaHost() 
Note: See TracChangeset for help on using the changeset viewer.