]> git.eshelyaron.com Git - emacs.git/commitdiff
Clear socks protocol scratch after authentication
authorF. Jason Park <jp@neverwas.me>
Thu, 7 Jan 2021 12:43:13 +0000 (13:43 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 7 Jan 2021 12:43:13 +0000 (13:43 +0100)
* lisp/net/socks.el (socks-open-connection): Fix incomplete patch
titled "Append incremental message segments in socks-filter," which
addressed chunk ordering but neglected to zero out the work area
following successful username/password authentication (bug#45162).

lisp/net/socks.el

index 0d48fd7e05a3beba7e6839c0b5ddc74d7dad84f7..96fafc826b82d5e50bc1a75f504e781d4a5d1a18 100644 (file)
          )
         )
        (process-put proc 'socks-state socks-state-authenticated)
+       (process-put proc 'socks-scratch "")
        (set-process-filter proc #'socks-filter)))
       proc)))