Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9e50294f
Commit
9e50294f
authored
Sep 07, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Sep 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Use internal name_skip function.
parent
106c1f0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ns_parse.c
dlls/dnsapi/ns_parse.c
+8
-4
No files found.
dlls/dnsapi/ns_parse.c
View file @
9e50294f
...
...
@@ -32,9 +32,14 @@
#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "dnsapi.h"
/* Forward. */
...
...
@@ -75,12 +80,11 @@ dns_ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count)
const
u_char
*
optr
=
ptr
;
while
(
count
--
>
0
)
{
int
b
,
rdlength
;
int
rdlength
;
b
=
dn_skipname
(
ptr
,
eom
);
if
(
b
<
0
)
if
(
dns_ns_name_skip
(
&
ptr
,
eom
)
<
0
)
RETERR
(
EMSGSIZE
);
ptr
+=
b
/*Name*/
+
NS_INT16SZ
/*Type*/
+
NS_INT16SZ
/*Class*/
;
ptr
+=
NS_INT16SZ
/*Type*/
+
NS_INT16SZ
/*Class*/
;
if
(
section
!=
ns_s_qd
)
{
if
(
ptr
+
NS_INT32SZ
+
NS_INT16SZ
>
eom
)
RETERR
(
EMSGSIZE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment