Skip to content
Snippets Groups Projects
url.c 152 KiB
Newer Older
  • Learn to ignore specific revisions
  • 
    /* Called on connect, and if there's already a protocol-specific struct
       allocated for a different connection, this frees it that it can be setup
       properly later on. */
    void Curl_reset_reqproto(struct connectdata *conn)
    {
      struct SessionHandle *data = conn->data;
    
      if(data->state.proto.generic && data->state.current_conn != conn) {
        free(data->state.proto.generic);
        data->state.proto.generic = NULL;