Page MenuHomeFreeBSD

D9982.id26198.diff
No OneTemporary

D9982.id26198.diff

Index: usr.sbin/lpr/chkprintcap/chkprintcap.c
===================================================================
--- usr.sbin/lpr/chkprintcap/chkprintcap.c
+++ usr.sbin/lpr/chkprintcap/chkprintcap.c
@@ -113,8 +113,13 @@
* the printcap file.
*/
skres = skim_printcap(pcap_fname, verbosity);
- if (skres->fatalerr)
- return (skres->fatalerr);
+ if (skres == NULL) {
+ problems = 1;
+ goto main_ret;
+ } else if (skres->fatalerr) {
+ problems = skres->fatalerr;
+ goto main_ret;
+ }
/*
* Now use the standard capability-db routines to check the values
@@ -156,6 +161,9 @@
warnx("WARNING: but only found %d queues to process!",
queuecnt);
}
+
+main_ret:
+ free(pcap_fname);
return (problems);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 5:29 AM (10 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30745606
Default Alt Text
D9982.id26198.diff (729 B)

Event Timeline