]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix missing newlines in ssl_nonblock_{read,write}() error message
authorDaniel Lenski <dlenski@gmail.com>
Wed, 21 Apr 2021 10:50:36 +0000 (11:50 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 21 Apr 2021 10:51:37 +0000 (11:51 +0100)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
gnutls.c
openssl.c

index a124763bb9e2bda4123d0fbdf85bc2334b36a051..0efd10912b0fbdc47f179bf13a3c5f2356a8288c 100644 (file)
--- a/gnutls.c
+++ b/gnutls.c
@@ -303,7 +303,7 @@ int ssl_nonblock_read(struct openconnect_info *vpninfo, int dtls, void *buf, int
 
        if (!sess) {
                vpn_progress(vpninfo, PRG_ERR,
-                            _("Attempted to read from non-existent %s session"),
+                            _("Attempted to read from non-existent %s session\n"),
                             dtls ? "DTLS" : "TLS");
                return -1;
        }
@@ -327,7 +327,7 @@ int ssl_nonblock_write(struct openconnect_info *vpninfo, int dtls, void *buf, in
 
        if (!sess) {
                vpn_progress(vpninfo, PRG_ERR,
-                            _("Attempted to write to non-existent %s session"),
+                            _("Attempted to write to non-existent %s session\n"),
                             dtls ? "DTLS" : "TLS");
                return -1;
        }
index 1bd7451a3e25f3086c80b60a78b6c79395f5fbcd..63c896261aa8e09f71a3206ab537dc2713a3bf8d 100644 (file)
--- a/openssl.c
+++ b/openssl.c
@@ -318,7 +318,7 @@ int ssl_nonblock_read(struct openconnect_info *vpninfo, int dtls, void *buf, int
 
        if (!ssl) {
                vpn_progress(vpninfo, PRG_ERR,
-                            _("Attempted to read from non-existent %s session"),
+                            _("Attempted to read from non-existent %s session\n"),
                             dtls ? "DTLS" : "TLS");
                return -1;
        }
@@ -343,7 +343,7 @@ int ssl_nonblock_write(struct openconnect_info *vpninfo, int dtls, void *buf, in
 
        if (!ssl) {
                vpn_progress(vpninfo, PRG_ERR,
-                            _("Attempted to write to non-existent %s session"),
+                            _("Attempted to write to non-existent %s session\n"),
                             dtls ? "DTLS" : "TLS");
                return -1;
        }