Commit
61461a300c1 accidentally checked memory allocation success
using the wrong variable.
Author: Ranier Vilela <
[email protected]>
Reviewed-by: Jelte Fennema-Nio <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/CAEudQAqQFTH7xCB-+K6zEKjfqbhqCxcr_w4DuJTxVT6h3vzu2w@mail.gmail.com
}
cancelConn->addr = calloc(cancelConn->naddr, sizeof(AddrInfo));
- if (!cancelConn->connhost)
+ if (!cancelConn->addr)
goto oom_error;
cancelConn->addr[0].addr = conn->raddr;