Results 1 to 2 of 2

Thread: ShowEQ Segfaults when run as non-root

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    183

    ShowEQ Segfaults when run as non-root

    I posted a patch in the patch area to fix packet.cpp to spit out a friendlier more informative error than a core dump when it tries to open the network interface with insufficient permissions for promiscuous mode. I print the returned error string as well as a little help as to what is probably wrong. (should probably check what the error was before printing the longer message to be sure it applies.... but hell, its better than it was).

    The problem was that pcap_perror was called with a NULL pointer which was invalid. It can't the last error message associated with a handle it was never able to get in the first place. So we just print ebuf ourselves.

    A minor patch, but there was one post earlier to the message boards that was caused by it.

  2. #2
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648

    Wink

    You forgot to include the patches in your patch submissions.

    Enjoy,
    Zaphod (dophpaZ)
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On