Package: cupsys
Version: 1.1.23-15

I have cupsd.conf configured to use encryption IfRequested.

Adding printer kalle always works just fine without encryption

# lpadmin -p Kalle -P ~lpetos/xr_dc440.ppd -v ipp://kalle/

When using encryption it does not work most of the time, repeating command
several times may get it to work eventually.

# lpadmin -p Kalle -P xr_dc440.ppd -v ipp://kalle/
<Just hangs - no response, several minutes>
<CTRL-C>

Traces

# strace -o lpadmin-E.log lpadmin -E -p Kalle -P xr_dc440.ppd -v ipp://kalle/
<CTRL-C>

See attached logfiles. The lpadmin-E-ok.log is from a execution that
actually works even with encryption. By filtering one can see intrerresting
similarities and that a SIGPIPE is received when it goes bad.

# egrep "send|recv|connect|accept|close" lpadmin-E.log  | less
# egrep "send|recv|connect|accept|close" lpadmin-E-ok.log  | less

The cups error_log show that something unexpected is received
 "Bad request line "^W^C^A" from localhost!"
Several times, until the last one when it actually succeeds.

If the fault is a buffer overrun in the server then I guess it is a security
related bug.


/Petter


Attachment: lpadmin-E-logs.tar.gz
Description: GNU Zip compressed data

Reply via email to