From 972d02447861f3a5e4df25b0b7216b93a5fb1322 Mon Sep 17 00:00:00 2001 From: mar Date: Wed, 20 Sep 1989 14:17:15 +0000 Subject: [PATCH] fix dereferencing null problems in calls to ss_perror() --- clients/mrtest/mrtest.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clients/mrtest/mrtest.c b/clients/mrtest/mrtest.c index 50c16b48..8598f2d1 100644 --- a/clients/mrtest/mrtest.c +++ b/clients/mrtest/mrtest.c @@ -61,7 +61,7 @@ sms() test_noop() { int status = sms_noop(); - if (status) ss_perror(ss, status, 0); + if (status) ss_perror(ss, status, ""); } test_new() @@ -89,13 +89,13 @@ char *argv[]; } } status = sms_connect(server); - if (status) ss_perror(ss, status, 0); + if (status) ss_perror(ss, status, ""); } test_disconnect() { int status = sms_disconnect(); - if (status) ss_perror(ss, status, 0); + if (status) ss_perror(ss, status, ""); } test_host() @@ -106,7 +106,7 @@ test_host() bzero(host, sizeof(host)); if (status = sms_host(host, sizeof(host) - 1)) - ss_perror(ss, status, 0); + ss_perror(ss, status, ""); else printf("You are connected to host %s\n", host); } @@ -116,7 +116,7 @@ test_auth() int status; status = sms_auth("smstest"); - if (status) ss_perror(ss, status, 0); + if (status) ss_perror(ss, status, ""); } test_script(argc, argv) @@ -250,7 +250,7 @@ test_query(argc, argv) count = 0; status = sms_query(argv[1], argc-2, argv+2, print_reply, (char *)NULL); printf("%d tuple%s\n", count, ((count == 1) ? "" : "s")); - if (status) ss_perror(ss, status, 0); + if (status) ss_perror(ss, status, ""); } test_access(argc, argv) @@ -263,7 +263,7 @@ test_access(argc, argv) return; } status = sms_access(argv[1], argc-2, argv+2); - if (status) ss_perror(ss, status, 0); + if (status) ss_perror(ss, status, ""); } -- 2.45.2