[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-25-g1d2683a0f

miras at claws-mail.org miras at claws-mail.org
Thu Jan 4 16:08:20 UTC 2024


The branch, gtk2 has been updated
       via  1d2683a0f879a7e0245a437485d56b84a6088cd1 (commit)
      from  7d2e06a9366cc42fa81c524d35081423ca95f084 (commit)

Summary of changes:
 src/oauth2.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 1d2683a0f879a7e0245a437485d56b84a6088cd1
Author: Michael Rasmussen <mir at datanom.net>
Date:   Thu Jan 4 17:08:09 2024 +0100

    Fix Bug #4725. Patch provided by Olaf Hering
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/oauth2.c b/src/oauth2.c
index cc1ff176c..43da8b9d5 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -504,18 +504,16 @@ gint oauth2_use_refresh_token (Oauth2Service provider, OAUTH2Data *OAUTH2Data)
 
 static gint oauth2_contact_server (SockInfo *sock, gchar *request, gchar *response)
 {
-	gint len;
 	gint ret;
 	gchar *token;
 	gint toread = OAUTH2BUFSIZE;	
 	time_t startplus = time(NULL);
 	gchar *tmp;
-	len = strlen(request);
 	
 	gint timeout_secs = prefs_common_get_prefs()->io_timeout_secs;
 	startplus += timeout_secs;
 	
-	if (sock_write (sock, request, len+1) < 0) {
+	if (sock_write (sock, request, strlen(request)) < 0) {
 	  log_message(LOG_PROTOCOL, _("OAuth2 socket write error\n"));
 	  return (1);
 	}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list