- itojun@cvs.openbsd.org 2003/05/17 03:25:58
[auth-rhosts.c] just in case, put numbers to sscanf %s arg.
This commit is contained in:
parent
7e1bbc55af
commit
a9825785e8
|
@ -6,6 +6,9 @@
|
||||||
[readconf.c ssh_config ssh_config.5 ssh-keysign.c]
|
[readconf.c ssh_config ssh_config.5 ssh-keysign.c]
|
||||||
add AddressFamily option to ssh_config (like -4, -6 on commandline).
|
add AddressFamily option to ssh_config (like -4, -6 on commandline).
|
||||||
Portable bug #534; ok markus@
|
Portable bug #534; ok markus@
|
||||||
|
- itojun@cvs.openbsd.org 2003/05/17 03:25:58
|
||||||
|
[auth-rhosts.c]
|
||||||
|
just in case, put numbers to sscanf %s arg.
|
||||||
- (djm) Remove IPv4 by default hack now that we can specify AF in config
|
- (djm) Remove IPv4 by default hack now that we can specify AF in config
|
||||||
|
|
||||||
20030517
|
20030517
|
||||||
|
@ -1562,4 +1565,4 @@
|
||||||
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
||||||
ok provos@
|
ok provos@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2734 2003/05/18 10:52:40 djm Exp $
|
$Id: ChangeLog,v 1.2735 2003/05/18 10:53:10 djm Exp $
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: auth-rhosts.c,v 1.29 2003/04/08 20:21:28 itojun Exp $");
|
RCSID("$OpenBSD: auth-rhosts.c,v 1.30 2003/05/17 03:25:58 itojun Exp $");
|
||||||
|
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
#include "uidswap.h"
|
#include "uidswap.h"
|
||||||
|
@ -68,7 +68,8 @@ check_rhosts_file(const char *filename, const char *hostname,
|
||||||
* This should be safe because each buffer is as big as the
|
* This should be safe because each buffer is as big as the
|
||||||
* whole string, and thus cannot be overwritten.
|
* whole string, and thus cannot be overwritten.
|
||||||
*/
|
*/
|
||||||
switch (sscanf(buf, "%s %s %s", hostbuf, userbuf, dummy)) {
|
switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf,
|
||||||
|
dummy)) {
|
||||||
case 0:
|
case 0:
|
||||||
auth_debug_add("Found empty line in %.100s.", filename);
|
auth_debug_add("Found empty line in %.100s.", filename);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue