mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-22 07:32:28 +02:00
- Fix warnings reported by the gcc analyzer.
This commit is contained in:
@@ -936,6 +936,8 @@ int _ub_resolve_async(struct ub_ctx* ctx, char* name, int rrtype, int rrclass, v
|
||||
int r;
|
||||
struct cb_data* id;
|
||||
id = (struct cb_data*) malloc(sizeof(struct cb_data));
|
||||
if(!id)
|
||||
return -2; /* UB_NOMEM */
|
||||
id->data = mydata;
|
||||
id->func = pyfunc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user