The Samba-Bugzilla – Attachment 5511 Details for
Bug 7202
applications that uses wins for name resolution crashes with samba 3.5.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-s3-Fix-bug-7202.patch (text/plain), 1.05 KB, created by
Volker Lendecke
on 2010-03-20 08:40:19 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2010-03-20 08:40:19 UTC
Size:
1.05 KB
patch
obsolete
>From 628ac6562f280ce4aa584c1fb51a91b0b962494e Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sat, 20 Mar 2010 15:23:17 +0100 >Subject: [PATCH] s3: Fix bug 7202 > >Make sure _nss_wins_gethostbyname_r has a talloc stackframe available > >Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for reporting the bug! > >Volker >--- > nsswitch/wins.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > >diff --git a/nsswitch/wins.c b/nsswitch/wins.c >index 80f0119..aa95ec7 100644 >--- a/nsswitch/wins.c >+++ b/nsswitch/wins.c >@@ -333,11 +333,14 @@ _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he, > int i, count; > fstring name; > size_t namelen; >+ TALLOC_CTX *frame; > > #if HAVE_PTHREAD > pthread_mutex_lock(&wins_nss_mutex); > #endif > >+ frame = talloc_stackframe(); >+ > memset(he, '\0', sizeof(*he)); > fstrcpy(name, hostname); > >@@ -421,6 +424,8 @@ _nss_wins_gethostbyname_r(const char *hostname, struct hostent *he, > > out: > >+ TALLOC_FREE(frame); >+ > #if HAVE_PTHREAD > pthread_mutex_unlock(&wins_nss_mutex); > #endif >-- >1.5.6.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:
metze
:
review+
Actions:
View
Attachments on
bug 7202
:
5444
|
5445
| 5511 |
5513
|
5514
|
5516
|
5522