Skip to content

Commit

Permalink
Don't scan libnice version if it wasn't retrieved (fixes #1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Nov 8, 2019
1 parent f426cef commit dd1cb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion janus.c
Original file line number Diff line number Diff line change
Expand Up @@ -4813,7 +4813,7 @@ gint main(int argc, char *argv[])

/* Make sure libnice is recent enough, otherwise print a warning */
int libnice_version = 0;
if(sscanf(libnice_version_string, "%*d.%*d.%d", &libnice_version) == 1) {
if(libnice_version_string != NULL && sscanf(libnice_version_string, "%*d.%*d.%d", &libnice_version) == 1) {
if(libnice_version < 15) {
JANUS_LOG(LOG_WARN, "libnice version outdated: %s installed, at least 0.1.15 recommended\n",
libnice_version_string);
Expand Down

0 comments on commit dd1cb8e

Please sign in to comment.