Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / assets / linux-android.svg
Author[]Andy Green <andy@warmcat.com> 2026-04-19 20:04 UTC
Committer[]Andy Green <andy@warmcat.com> 2026-04-19 20:04 UTC
Tree77f4dba221c6aff2dbe2171075254383990263b8   Raw Patch
 
CID 503240: NULL_RETURNS
CID 503240: NULL_RETURNS
diff --git a/src/web/w-comms.c b/src/web/w-comms.c index f198fc6..acf5a42 100644 --- a/src/web/w-comms.c +++ b/src/web/w-comms.c @@ -66,6 +66,10 @@ int saiw_task_cancel(struct vhd *vhd, const char *task_uuid) { sai_cancel_t *can = malloc(sizeof(*can)); + + if (!can) + return 1; + memset(can, 0, sizeof(*can));
Page fetched 0s ago, creation time: 1ms (vhost etag hits: 0%, cache hits: 0%)