From c50ea9c54a5f41c875812832f73aca8803cb6260 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 3 Mar 2009 01:53:19 +0000 Subject: [PATCH] Fixed a warning. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3133 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/net_wins.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/common/net_wins.c b/engine/common/net_wins.c index 2e481f566..1867ceca8 100644 --- a/engine/common/net_wins.c +++ b/engine/common/net_wins.c @@ -721,7 +721,10 @@ qboolean NET_StringToAdr (char *s, netadr_t *a) //make sure that the rest of the address is a valid ip address (4 or 6) if (!NET_StringToSockaddr (s+6, &sadr)) + { + a->type = NA_INVALID; return false; + } SockadrToNetadr (&sadr, a); @@ -771,7 +774,10 @@ qboolean NET_StringToAdr (char *s, netadr_t *a) } if (!NET_StringToSockaddr (s, &sadr)) + { + a->type = NA_INVALID; return false; + } SockadrToNetadr (&sadr, a); @@ -1648,6 +1654,7 @@ qboolean NET_PortToAdr (int adrfamily, char *s, netadr_t *a) } return true; } + a->type = NA_INVALID; return false; }