aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-12-09 23:54:05 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-12-09 23:54:05 +0900
commit7e725a7a8a9d4d8ff31c509aded6f69828a0cab2 (patch)
tree943030fcd3bcd896eb39f49943b5b64a95ba52d4 /src
parent88efa0cbb1817c8d5c50c5053fefe497ac602bf4 (diff)
downloadgnunet-7e725a7a8a9d4d8ff31c509aded6f69828a0cab2.tar.gz
gnunet-7e725a7a8a9d4d8ff31c509aded6f69828a0cab2.zip
TESTING: Fix NP deref
Diffstat (limited to 'src')
-rw-r--r--src/testing/testing_api_loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index f133956cf..dac4e5deb 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -259,7 +259,7 @@ finish_test (void *cls)
259 is->finishing = GNUNET_YES; 259 is->finishing = GNUNET_YES;
260 is->final_task = NULL; 260 is->final_task = NULL;
261 label = is->commands[is->ip].label; 261 label = is->commands[is->ip].label;
262 if (NULL == label) 262 if (NULL == is->commands[is->ip].run)
263 label = "END"; 263 label = "END";
264 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 264 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
265 "Interpreter finishes at `%s' with status %d\n", 265 "Interpreter finishes at `%s' with status %d\n",
@@ -538,7 +538,8 @@ GNUNET_TESTING_command_new (void *cls,
538 .traits = traits 538 .traits = traits
539 }; 539 };
540 memset (&cmd, 0, sizeof (cmd)); 540 memset (&cmd, 0, sizeof (cmd));
541 strncpy (cmd.label, label, GNUNET_TESTING_CMD_MAX_LABEL_LENGTH); 541 if (NULL != label)
542 strncpy (cmd.label, label, GNUNET_TESTING_CMD_MAX_LABEL_LENGTH);
542 543
543 return cmd; 544 return cmd;
544 545