This project is mirrored from git://git.infradead.org/users/dwmw2/openconnect.git. Updated .
  1. 14 Oct, 2019 10 commits
  2. 11 Oct, 2019 1 commit
    • David Woodhouse's avatar
      Correct handling of empty responses to HTTP requests · 17102ee1
      David Woodhouse authored
      If there's nothing to return, read_http_header() doesn't append anything
      at all to hdrbuf, and it ends up with hdrbuf->data still NULL.
      
      As long as *something* has once been added to it, there is a guarantee
      that it's OK to use hdrbuf->data as a NUL-terminated string, as we do
      when looking for HTTP/1.x responses.
      
      Spotted when I just hit 'enter' when testing with openssl s_server.
      
      Fixes: 093de805 ("Rework HTTP header fetching to receive into oc_text_buf")
      Signed-off-by: David Woodhouse's avatarDavid Woodhouse <dwmw2@infradead.org>
      17102ee1
  3. 10 Oct, 2019 13 commits
  4. 09 Oct, 2019 16 commits