Uninitialized Variable at tshark.c:1807 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
capture (/home/sate/Testcases/c/cve/wireshark-1.2.0/tshark.c)![]() | ||||||
![]() | ||||||
1758 | capture(void) | |||||
1759 | { | |||||
1760 | gboolean ret; | |||||
1761 | #ifdef USE_TSHARK_SELECT | |||||
1762 | fd_set readfds; | |||||
1763 | #endif | |||||
1764 | #ifndef _WIN32 | |||||
1765 | struct sigaction action, oldaction; | |||||
1766 | #endif | |||||
1767 | ||||||
1768 | /* | |||||
1779 | * privileges any more; relinquish those privileges. | |||||
1780 | * | |||||
1781 | * XXX - if we have saved set-user-ID support, we should give up those | |||||
1782 | * privileges immediately, and then reclaim them long enough to get | |||||
1783 | * a list of network interfaces and to open one, and then give them | |||||
1784 | * up again, so that stuff we do while processing the argument list, | |||||
1785 | * reading the user's preferences, loading and starting plugins | |||||
1786 | * (especially *user* plugins), etc. is done with the user's privileges, | |||||
1787 | * not special privileges. | |||||
1788 | */ | |||||
1789 | relinquish_special_privs_perm(); | |||||
1790 | print_current_user(); | |||||
1791 | ||||||
1792 | /* Initialize all data structures used for dissection. */ | |||||
1793 | init_dissection(); | |||||
1794 | ||||||
1795 | #ifdef _WIN32 | |||||
1796 | /* Catch a CTRL+C event and, if we get it, clean up and exit. */ | |||||
1797 | SetConsoleCtrlHandler(capture_cleanup, TRUE); | |||||
1798 | #else /* _WIN32 */ | |||||
1799 | /* Catch SIGINT and SIGTERM and, if we get either of them, clean up | |||||
1800 | and exit. */ | |||||
1801 | action.sa_handler = capture_cleanup; | |||||
1802 | action.sa_flags = 0; | |||||
1803 | sigemptyset(&action.sa_mask); | |||||
1804 | sigaction(SIGTERM, &action, NULL); | |||||
1805 | sigaction(SIGINT, &action, NULL); | |||||
1806 | sigaction(SIGHUP, NULL, &oldaction);
| |||||
1807 | if (oldaction.sa_handler == SIG_DFL)
| |||||
![]() |