Skip to content

Commit bec6632

Browse files
committed
Addressed copilot's review points
1 parent a9b4c8c commit bec6632

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/dohd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ static void dohd_destroy_client(struct client_data *cd)
304304
}
305305
if (!found) {
306306
dohprint(DOH_ERR, "Unexpected client_data ptr %p not in Clients list\n", cd);
307+
return;
307308
}
308309

309310
/* Cleanup pending requests */

src/libevquick.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ void evquick_deltimer(evquick_timer *t)
375375
if (heap_delete(ctx->timers, t->id) == 0)
376376
free(t);
377377
#else
378-
if (!ctx || !t)
378+
if (!t)
379379
return;
380380
if (heap_delete(ctx->timers, t->id) == 0)
381381
free(t);

0 commit comments

Comments
 (0)