[Commits] [SCM] claws branch, master, updated. 4.2.0-28-g41828b842

miras at claws-mail.org miras at claws-mail.org
Thu Jan 4 16:02:34 UTC 2024


The branch, master has been updated
       via  41828b842604ac734bfba6c0669491d138c19c33 (commit)
      from  d6e99c00aa4fda7924b74438d45605bf50018b8c (commit)

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


- Log -----------------------------------------------------------------
commit 41828b842604ac734bfba6c0669491d138c19c33
Author: Michael Rasmussen <mir at datanom.net>
Date:   Thu Jan 4 17:02:12 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 1cd3fe4e1..fa89a23ab 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -505,18 +505,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