mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-02 09:02:32 +00:00
copy was meant to be a permanent dstring
This commit is contained in:
parent
fad902f0bf
commit
3607fecafd
1 changed files with 0 additions and 4 deletions
|
@ -271,7 +271,6 @@ NET_StringToAdr (const char *s, netadr_t *a)
|
||||||
for (; *space && *space != ']'; space++);
|
for (; *space && *space != ']'; space++);
|
||||||
if (!*space) {
|
if (!*space) {
|
||||||
Con_Printf ("NET_StringToAdr: invalid IPv6 address %s\n", s);
|
Con_Printf ("NET_StringToAdr: invalid IPv6 address %s\n", s);
|
||||||
dstring_delete (copy);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*space++ = '\0';
|
*space++ = '\0';
|
||||||
|
@ -288,7 +287,6 @@ NET_StringToAdr (const char *s, netadr_t *a)
|
||||||
// Error
|
// Error
|
||||||
Con_Printf ("NET_StringToAdr: string %s:\n%s\n", s,
|
Con_Printf ("NET_StringToAdr: string %s:\n%s\n", s,
|
||||||
gai_strerror (err));
|
gai_strerror (err));
|
||||||
dstring_delete (copy);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -314,12 +312,10 @@ NET_StringToAdr (const char *s, netadr_t *a)
|
||||||
default:
|
default:
|
||||||
Con_Printf ("NET_StringToAdr: string %s:\nprotocol family %d not "
|
Con_Printf ("NET_StringToAdr: string %s:\nprotocol family %d not "
|
||||||
"supported\n", s, resultp->ai_family);
|
"supported\n", s, resultp->ai_family);
|
||||||
dstring_delete (copy);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SockadrToNetadr ((struct sockaddr_in6 *) &ss, a);
|
SockadrToNetadr ((struct sockaddr_in6 *) &ss, a);
|
||||||
dstring_delete (copy);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue