diff options
author | walter harms <wharms@bfs.de> | 2017-10-18 18:03:47 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-20 16:39:16 -0700 |
commit | 1e7787324a788fe84f7e438f4db9a47c8f6dd952 (patch) | |
tree | 3f1e7550c0e4aa90c6fe58db327fafe71fc7f709 | |
parent | 7b439c788b94849d4f07cda77518bec43ebbd9a6 (diff) |
add check for malloc
fix a potential null pointer deference error
Signed-off-by: Walter Harms <wharms@bfs.de>
-rw-r--r-- | src/replywait.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/replywait.c b/src/replywait.c index d87a05a..46c11e0 100644 --- a/src/replywait.c +++ b/src/replywait.c @@ -60,6 +60,8 @@ _IceAddReplyWait ( } savedReplyWait = malloc (sizeof (_IceSavedReplyWait)); + if (!savedReplyWait) + return; savedReplyWait->reply_wait = replyWait; savedReplyWait->reply_ready = False; |