Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 199195 | Differences between
and this patch

Collapse All | Expand All

(-)cups-1.3.4/scheduler/client.c.CVE-2007-4045 (+21 lines)
Lines 114-119 static int write_file(cupsd_client_t *c Link Here
114
static void		write_pipe(cupsd_client_t *con);
114
static void		write_pipe(cupsd_client_t *con);
115
115
116
116
117
void
118
_cupsdFixClientsBIO(void)
119
{
120
#ifdef HAVE_LIBSSL
121
  cupsd_client_t *c;
122
  BIO *bio;
123
  cupsArraySave (Clients);
124
  for (c = (cupsd_client_t *)cupsArrayFirst(Clients);
125
       c;
126
       c = (cupsd_client_t *)cupsArrayNext(Clients))
127
  {
128
    bio = SSL_get_wbio(c->http.tls);
129
    BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)HTTP(c));
130
  }
131
  cupsArrayRestore (Clients);
132
#endif
133
}
134
135
117
/*
136
/*
118
 * 'cupsdAcceptClient()' - Accept a new client.
137
 * 'cupsdAcceptClient()' - Accept a new client.
119
 */
138
 */
Lines 451-456 cupsdAcceptClient(cupsd_listener_t *lis) Link Here
451
  }
470
  }
452
471
453
  cupsArrayAdd(Clients, con);
472
  cupsArrayAdd(Clients, con);
473
  _cupsdFixClientsBIO();
454
474
455
  cupsdLogMessage(CUPSD_LOG_DEBUG2,
475
  cupsdLogMessage(CUPSD_LOG_DEBUG2,
456
                  "cupsdAcceptClient: %d connected to server on %s:%d",
476
                  "cupsdAcceptClient: %d connected to server on %s:%d",
Lines 735-740 cupsdCloseClient(cupsd_client_t *con) /* Link Here
735
    */
755
    */
736
756
737
    cupsArrayRemove(Clients, con);
757
    cupsArrayRemove(Clients, con);
758
    _cupsdFixClientsBIO();
738
759
739
    free(con);
760
    free(con);
740
  }
761
  }

Return to bug 199195