rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
75 stars 91 forks source link

lr_downloadtarget_new(): fix the file descriptor assert (RhBug:1771219) #182

Closed lukash closed 4 years ago

lukash commented 4 years ago

Include 0 for the assert on a valid fd passed for the function. Zero is a valid value for the fd argument, the documentation does say to set fd to -1 to "not set it" (and use the fn instead).

https://bugzilla.redhat.com/show_bug.cgi?id=1771219