X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=inline;f=libust%2Ftracectl.c;h=dd61ebe7f7521cb2d6e79eff7592584b14a8c883;hb=7b2c500757f1e2f25c6d8872110d45a343e7bbbe;hp=f1b644cc45b29aa741deae84b9307f2f4bcef705;hpb=a3adfb05f9a9d0bb3f49b6696a0c233d6e9f6626;p=ust.git 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");