Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144859 Details for
Bug 221531
Memory Leaks in svcgssd
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
upstream patch
nfs-utils-1.0.8-rc4-003-svcgssd_mem_leaks.dif (text/plain), 2.59 KB, created by
Steve Dickson
on 2007-01-04 22:31:09 UTC
(
hide
)
Description:
upstream patch
Filename:
MIME Type:
Creator:
Steve Dickson
Created:
2007-01-04 22:31:09 UTC
Size:
2.59 KB
patch
obsolete
> > >Various memory leaks in the svcgssd context processing are eliminated. > > >--- > > nfs-utils-1.0.8-rc4-kwc/utils/gssd/svcgssd_proc.c | 13 +++++++++++++ > 1 files changed, 13 insertions(+) > >diff -puN utils/gssd/svcgssd_proc.c~svcgssd_mem_leaks utils/gssd/svcgssd_proc.c >--- nfs-utils-1.0.8-rc4/utils/gssd/svcgssd_proc.c~svcgssd_mem_leaks 2006-04-04 18:01:41.755725000 -0400 >+++ nfs-utils-1.0.8-rc4-kwc/utils/gssd/svcgssd_proc.c 2006-04-04 18:01:41.767711000 -0400 >@@ -203,10 +203,12 @@ get_ids(gss_name_t client_name, gss_OID > if (!(sname = calloc(name.length + 1, 1))) { > printerr(0, "WARNING: get_ids: error allocating %d bytes " > "for sname\n", name.length + 1); >+ gss_release_buffer(&min_stat, &name); > goto out; > } > memcpy(sname, name.value, name.length); > printerr(1, "sname = %s\n", sname); >+ gss_release_buffer(&min_stat, &name); > > res = -EINVAL; > if ((secname = mech2file(mech)) == NULL) { >@@ -281,6 +283,7 @@ handle_nullreq(FILE *f) { > in_handle = {.value = in_handle_buf}, > out_handle = {.value = out_handle_buf}, > ctx_token = {.value = NULL}, >+ ignore_out_tok = {.value = NULL}, > /* XXX isn't there a define for this?: */ > null_token = {.value = NULL}; > u_int32_t ret_flags; >@@ -288,6 +291,7 @@ handle_nullreq(FILE *f) { > gss_name_t client_name; > gss_OID mech = GSS_C_NO_OID; > u_int32_t maj_stat = GSS_S_FAILURE, min_stat = 0; >+ u_int32_t ignore_min_stat; > struct svc_cred cred; > static char *lbuf = NULL; > static int lbuflen = 0; >@@ -352,8 +356,10 @@ handle_nullreq(FILE *f) { > if (get_ids(client_name, mech, &cred)) { > /* get_ids() prints error msg */ > maj_stat = GSS_S_BAD_NAME; /* XXX ? */ >+ gss_release_name(&ignore_min_stat, &client_name); > goto out_err; > } >+ gss_release_name(&ignore_min_stat, &client_name); > > > /* Context complete. Pass handle_seq in out_handle to use >@@ -370,6 +376,9 @@ handle_nullreq(FILE *f) { > maj_stat = GSS_S_FAILURE; > goto out_err; > } >+ /* We no longer need the gss context */ >+ gss_delete_sec_context(&ignore_min_stat, &ctx, &ignore_out_tok); >+ > do_svc_downcall(&out_handle, &cred, mech, &ctx_token); > continue_needed: > send_response(f, &in_handle, &in_tok, maj_stat, min_stat, >@@ -377,10 +386,14 @@ continue_needed: > out: > if (ctx_token.value != NULL) > free(ctx_token.value); >+ if (out_tok.value != NULL) >+ gss_release_buffer(&ignore_min_stat, &out_tok); > printerr(1, "finished handling null request\n"); > return; > > out_err: >+ if (ctx != GSS_C_NO_CONTEXT) >+ gss_delete_sec_context(&ignore_min_stat, &ctx, &ignore_out_tok); > send_response(f, &in_handle, &in_tok, maj_stat, min_stat, > &null_token, &null_token); > goto out; > >_
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221531
: 144859