iproute2/iproute2-2.6.29-1-iptunnel-fclose.diff
OBS User autobuild 57ce5340c3 Accepting request 17722 from network:utilities
Copy from network:utilities/iproute2 based on submit request 17722 from user adrianSuSE

OBS-URL: https://build.opensuse.org/request/show/17722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=20
2009-08-13 21:25:48 +00:00

19 lines
471 B
Diff

--- ip/iptunnel.c 2009-07-28 13:28:59.000000000 +0200
+++ ip/iptunnel.c 2009-07-28 13:29:29.000000000 +0200
@@ -400,6 +400,7 @@
if ((ptr = strchr(buf, ':')) == NULL ||
(*ptr++ = 0, sscanf(buf, "%s", name) != 1)) {
fprintf(stderr, "Wrong format of /proc/net/dev. Sorry.\n");
+ fclose (fp);
return -1;
}
if (sscanf(ptr, "%ld%ld%ld%ld%ld%ld%ld%*d%ld%ld%ld%ld%ld%ld%ld",
@@ -438,6 +439,7 @@
}
printf("\n");
}
+ fclose (fp);
return 0;
}