All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: russell@coker.com.au
Cc: SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: libsepol
Date: Tue, 03 Jan 2006 12:35:03 -0500	[thread overview]
Message-ID: <43BAB5C7.5080904@cornell.edu> (raw)
In-Reply-To: <200601040559.04895.russell@coker.com.au>



> -		context_destroy(&c->context[0]);
> -		context_destroy(&c->context[1]);
> +		if(con)
> +		{
> +			context_destroy(&con->context[0]);
> +			context_destroy(&con->context[1]);
> +		}
>   
This is actually wrong, the bug is that con should be iface, as we're 
freeing the interface's context.
The variable c was correctly left uninitialized in the code - it was 
just used where it's not supposed to.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2006-01-03 19:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03 18:58 libsepol Russell Coker
2006-01-03 17:35 ` Ivan Gyurdiev [this message]
2006-01-05 13:51   ` libsepol Stephen Smalley
2006-01-05 17:10 ` libsepol Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43BAB5C7.5080904@cornell.edu \
    --to=ivg2@cornell.edu \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.