From mboxrd@z Thu Jan 1 00:00:00 1970 From: douglas.santos@polymtl.ca (Douglas Santos) Date: Fri, 10 Sep 2010 17:28:55 -0400 Subject: [ltt-dev] [UST PATCH] null check for disable_marker Message-ID: <1284154135-17109-1-git-send-email-douglas.santos@polymtl.ca> --- 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