Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9713b0b in mainline


Ignore:
Timestamp:
2017-09-11T16:34:43Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
0a1e7e4
Parents:
e1b4ae0
Message:

Fix downloader null pointer dereference when writing to stdout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/download/main.c

    re1b4ae0 r9713b0b  
    237237        http_destroy(http);
    238238        uri_destroy(uri);
    239         if (fclose(ofile) != 0) {
     239        if (ofile != NULL && fclose(ofile) != 0) {
    240240                printf("Error writing '%s'.\n", ofname);
    241241                return EIO;
Note: See TracChangeset for help on using the changeset viewer.