]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authordjm@openbsd.org <djm@openbsd.org>
Mon, 8 May 2017 06:03:39 +0000 (06:03 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 8 May 2017 06:09:20 +0000 (16:09 +1000)
helps if I commit the correct version of the file. fix
missing return statement.

Upstream-ID: c86394a3beeb1ec6611e659bfa830254f325546c

packet.c

index 083c475a04647d8687aed12ccc0c6560891967e8..46dcc5b5f125bbea4400290d2f4013e0a6a53aaa 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.255 2017/05/08 00:21:36 djm Exp $ */
+/* $OpenBSD: packet.c,v 1.256 2017/05/08 06:03:39 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2240,6 +2240,7 @@ ssh_packet_get_state(struct ssh *ssh, struct sshbuf *m)
            (r = sshbuf_put_u64(m, state->p_read.bytes)) != 0 ||
            (r = sshbuf_put_stringb(m, state->input)) != 0 ||
            (r = sshbuf_put_stringb(m, state->output)) != 0)
+               return r;
 
        return 0;
 }