Elliptic Curve host key and -R argument bug

Bruno Thomsen bth at kamstrup.dk
Thu Jan 30 15:19:48 WST 2014


Hi,

> Could you see if the patch below fixes it? I think the ecdsa hostkeys are coincidental. 
>
> Cheers,
> Matt
>
> https://secure.ucc.asn.au/hg/dropbear/rev/6e6ae84d3dba
> --- a/gensignkey.c      Thu Jan 23 22:29:04 2014 +0800
> +++ b/gensignkey.c      Tue Jan 28 22:44:24 2014 +0800
> @@ -26,7 +26,7 @@
>         while (buf->pos != buf->len) {
>                 int len = write(fd, buf_getptr(buf, buf->len - buf->pos),
>                                 buf->len - buf->pos);
> -               if (errno == EINTR) {
> +               if (len == -1 && errno == EINTR) {
>                         continue;
>                 }
>                 if (len <= 0) {


After applying the patch I'm unable to reproduce the issue.
Everything else seems to work as usual - thumbs up :)


Venlig hilsen / Best regards
 
Kamstrup A/S <http://www.kamstrup.dk>

Bruno Thomsen
Development engineer
Technology
 
Kamstrup A/S
Industrivej 28
DK-8660 Skanderborg
Tel:	 +45 89 93 10 00	 
Fax:	 +45 89 93 10 01	 
Dir:	 +45 89 93 13 94	 
E-mail:	 bth at kamstrup.dk	 
Web:	 www.kamstrup.dk	 
 


More information about the Dropbear mailing list