[Users] [Bug 4786] New: remove type confusion in getsockopt call in sock_connect_async_cb

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Fri Feb 23 18:35:51 UTC 2024


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4786

            Bug ID: 4786
           Summary: remove type confusion in getsockopt call in
                    sock_connect_async_cb
           Product: Claws Mail
           Version: GIT
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: olaf at aepfle.de

Created attachment 2471
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2471&action=edit
master-remove-type-confusion-in-getsockopt-call-in-sock_con.patch

The function getsockopt expects a pointer to an area of memory whose length has
to specified in a variable of type socklen_t.

Adjust the type of optlen to be socklen_t as mandated by POSIX.

Adjust the type of optval pointer to what it really is, it will be
automatically converted to become a "void *" pointer.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list