The Samba-Bugzilla – Attachment 8655 Details for
Bug 9727
srv_wkssvc_nt.c unconditionally dereferences a unique pointer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
9727.patch (text/plain), 1.30 KB, created by
Volker Lendecke
on 2013-03-18 08:40:15 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2013-03-18 08:40:15 UTC
Size:
1.30 KB
patch
obsolete
>From eeffc5f5c36859cc1b34f12ec8c83fc4ef476695 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Mon, 18 Mar 2013 09:36:17 +0100 >Subject: [PATCH] wkssvc: Fix bug 9727, NULL pointer dereference > >Signed-off-by: Volker Lendecke <vl@samba.org> >--- > source3/rpc_server/wkssvc/srv_wkssvc_nt.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/source3/rpc_server/wkssvc/srv_wkssvc_nt.c b/source3/rpc_server/wkssvc/srv_wkssvc_nt.c >index 1764941..2d3ec1e 100644 >--- a/source3/rpc_server/wkssvc/srv_wkssvc_nt.c >+++ b/source3/rpc_server/wkssvc/srv_wkssvc_nt.c >@@ -579,7 +579,9 @@ WERROR _wkssvc_NetWkstaEnumUsers(struct pipes_struct *p, > } > r->out.info->level = r->in.info->level; > *r->out.entries_read = r->out.info->ctr.user0->entries_read; >- *r->out.resume_handle = 0; >+ if (r->out.resume_handle != NULL) { >+ *r->out.resume_handle = 0; >+ } > break; > case 1: > r->out.info->ctr.user1 = create_enum_users1(p->mem_ctx); >@@ -588,7 +590,9 @@ WERROR _wkssvc_NetWkstaEnumUsers(struct pipes_struct *p, > } > r->out.info->level = r->in.info->level; > *r->out.entries_read = r->out.info->ctr.user1->entries_read; >- *r->out.resume_handle = 0; >+ if (r->out.resume_handle != NULL) { >+ *r->out.resume_handle = 0; >+ } > break; > default: > return WERR_UNKNOWN_LEVEL; >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
obnox
:
review-
Actions:
View
Attachments on
bug 9727
: 8655 |
8703
|
8704