diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ocsptool-common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ocsptool-common.c b/src/ocsptool-common.c index 22410e27dc..6e17c83197 100644 --- a/src/ocsptool-common.c +++ b/src/ocsptool-common.c @@ -183,6 +183,10 @@ int send_ocsp_request(const char *server, } url = malloc(data.size + 1); + if (url == NULL) { + ret = -1; + return ret; + } memcpy(url, data.data, data.size); url[data.size] = 0; |