summaryrefslogtreecommitdiffstats
path: root/demos/bio/server-conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/bio/server-conf.c')
-rw-r--r--demos/bio/server-conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/bio/server-conf.c b/demos/bio/server-conf.c
index 5355839f4f..cc9fe8a828 100644
--- a/demos/bio/server-conf.c
+++ b/demos/bio/server-conf.c
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
ERR_print_errors_fp(stderr);
goto err;
}
- if (!strcmp(cnf->name, "Port")) {
+ if (strcmp(cnf->name, "Port") == 0) {
port = cnf->value;
} else {
fprintf(stderr, "Unknown configuration option %s\n", cnf->name);