Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: compudj@krystal.dyndns.org (Mathieu Desnoyers)
Subject: [ltt-dev] [UST PATCH] null check for disable_marker
Date: Sat, 11 Sep 2010 11:18:28 -0400	[thread overview]
Message-ID: <20100911151828.GE22938@Krystal> (raw)
In-Reply-To: <1284154135-17109-1-git-send-email-douglas.santos@polymtl.ca>

* Douglas Santos (douglas.santos at polymtl.ca) wrote:

(Signed-off-by: Douglas Santos <douglas.santos at polymtl.ca>)

Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

> ---
>  libust/tracectl.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/libust/tracectl.c b/libust/tracectl.c
> index f1b644c..dd61ebe 100644
> --- a/libust/tracectl.c
> +++ b/libust/tracectl.c
> @@ -1064,7 +1064,9 @@ int process_client_cmd(char *recvbuf, struct ustcomm_source *src)
>  
>  		result = sscanf(channel_slash_name, "%a[^/]/%as", &channel_name, &marker_name);
>  
> -		if(marker_name == NULL) {
> +		if(channel_name == NULL || marker_name == NULL) {
> +			WARN("invalid marker name");
> +			goto next_cmd;
>  		}
>  
>  		result = ltt_marker_disconnect(channel_name, marker_name, "default");
> -- 
> 1.7.0.4
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



  reply	other threads:[~2010-09-11 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10 21:28 Douglas Santos
2010-09-11 15:18 ` Mathieu Desnoyers [this message]
2010-09-13 12:32   ` Nils Carlson
2010-09-11 15:20 ` Mathieu Desnoyers

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=20100911151828.GE22938@Krystal \
    --to=compudj@krystal.dyndns.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox