artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd9e80
)
Always initialize delim before passing to hpdelim2 which might not set it.
author
dtucker
<dtucker@openbsd.org>
Fri, 11 Feb 2022 00:43:56 +0000
(
00:43
+0000)
committer
dtucker
<dtucker@openbsd.org>
Fri, 11 Feb 2022 00:43:56 +0000
(
00:43
+0000)
Found by the Valgrind tests on github, ok deraadt@
usr.bin/ssh/misc.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/misc.c
b/usr.bin/ssh/misc.c
index
1c86f68
..
1c32489
100644
(file)
--- a/
usr.bin/ssh/misc.c
+++ b/
usr.bin/ssh/misc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: misc.c,v 1.17
3 2022/02/08 08:59:12
dtucker Exp $ */
+/* $OpenBSD: misc.c,v 1.17
4 2022/02/11 00:43:56
dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005-2020 Damien Miller. All rights reserved.
@@
-676,7
+676,7
@@
hpdelim2(char **cp, char *delim)
char *
hpdelim(char **cp)
{
- char *r, delim;
+ char *r, delim
= '\0'
;
r = hpdelim2(cp, &delim);
if (delim == '/')