diff options
-rw-r--r-- | sshkey.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshkey.c,v 1.43 2017/02/17 02:31:14 dtucker Exp $ */ | 1 | /* $OpenBSD: sshkey.c,v 1.44 2017/03/10 03:48:57 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Alexander von Gernler. All rights reserved. | 4 | * Copyright (c) 2008 Alexander von Gernler. All rights reserved. |
@@ -1239,6 +1239,9 @@ sshkey_read(struct sshkey *ret, char **cpp) | |||
1239 | u_long bits; | 1239 | u_long bits; |
1240 | #endif /* WITH_SSH1 */ | 1240 | #endif /* WITH_SSH1 */ |
1241 | 1241 | ||
1242 | if (ret == NULL) | ||
1243 | return SSH_ERR_INVALID_ARGUMENT; | ||
1244 | |||
1242 | cp = *cpp; | 1245 | cp = *cpp; |
1243 | 1246 | ||
1244 | switch (ret->type) { | 1247 | switch (ret->type) { |