-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upnp: fix racy redeclaration of function by bringing back this hack
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4358b85There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did I miss something? I can't find the other declaration in the code.
4358b85There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code races with pkg_edit.php (I think upnp) when clicking the main page shortcut. Some require vs. require_once issue I guess. The function_exists() code was previously there. Couldn't pin this down any further. :(
4358b85There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And then this happened... https://forum.opnsense.org/index.php?topic=303.0
4358b85There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, weird.... I had the same issue before I remove the extra redirectHeader that was in pkg_edit.php.
/* dummy stubs needed by some code that was MFC'd */
function redirectHeader($location) { header("Location: " . $location); }
But when I dropped that one, all worked fine at my end... weird.... but not worth looking into :-)