Skip to content
This repository
Browse code

[dns] - check parameters for validity - fixes #13975 - credits to fla…

…terichd
  • Loading branch information...
commit bcd130302c5814b6f92e8266fb033d385d318876 1 parent f222f64
Memphiz authored January 18, 2013

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  xbmc/network/DNSNameCache.cpp
3  xbmc/network/DNSNameCache.cpp
@@ -38,6 +38,9 @@ CDNSNameCache::~CDNSNameCache(void)
38 38
 
39 39
 bool CDNSNameCache::Lookup(const CStdString& strHostName, CStdString& strIpAddress)
40 40
 {
  41
+  if (strHostName.empty() && strIpAddress.empty())
  42
+    return false;
  43
+
41 44
   // first see if this is already an ip address
42 45
   unsigned long address = inet_addr(strHostName.c_str());
43 46
   strIpAddress.Empty();

0 notes on commit bcd1303

Please sign in to comment.
Something went wrong with that request. Please try again.