[ltt-dev] [UST PATCH] null check for disable_marker

Nils Carlson nils at as68123.uab.ericsson.se
Mon Sep 13 08:32:54 EDT 2010


pulled, thanks.

/Nils

On Sat, 11 Sep 2010, Mathieu Desnoyers wrote:

> * 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
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>




More information about the lttng-dev mailing list