diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2015-08-20 22:32:42 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-08-21 13:43:25 +1000 |
commit | ce445b0ed927e45bd5bdce8f836eb353998dd65c (patch) | |
tree | 34170a772ddf573879b8ae244bafd6871be0fd11 /sshconnect.c | |
parent | 05291e5288704d1a98bacda269eb5a0153599146 (diff) |
upstream commit
Do not cast result of malloc/calloc/realloc* if stdlib.h
is in scope ok krw millert
Upstream-ID: 5e50ded78cadf3841556649a16cc4b1cb6c58667
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c index f41960c5d..17fbe39b0 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.c,v 1.262 2015/05/28 05:41:29 dtucker Exp $ */ | 1 | /* $OpenBSD: sshconnect.c,v 1.263 2015/08/20 22:32:42 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -356,7 +356,7 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr, | |||
356 | goto done; | 356 | goto done; |
357 | } | 357 | } |
358 | 358 | ||
359 | fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), | 359 | fdset = xcalloc(howmany(sockfd + 1, NFDBITS), |
360 | sizeof(fd_mask)); | 360 | sizeof(fd_mask)); |
361 | FD_SET(sockfd, fdset); | 361 | FD_SET(sockfd, fdset); |
362 | ms_to_timeval(&tv, *timeoutp); | 362 | ms_to_timeval(&tv, *timeoutp); |