kim_options_set_service_name should be able to take a service name of NULL
authorAlexandra Ellwood <lxs@mit.edu>
Fri, 26 Sep 2008 20:49:23 +0000 (20:49 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Fri, 26 Sep 2008 20:49:23 +0000 (20:49 +0000)
ticket: 6055

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20761 dc483132-0cff-0310-8789-dd5450dbe970

src/kim/lib/kim_options.c

index 102fa9644837347554e7fb3665e4013cd3f0f232..84a77f6cdf524daef8323bb3e4df4727ae6b1348 100644 (file)
@@ -382,8 +382,7 @@ kim_error kim_options_set_service_name (kim_options  io_options,
     kim_error err = KIM_NO_ERROR;
     kim_string service_name = NULL;
     
-    if (!err && !io_options     ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
-    if (!err && !in_service_name) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+    if (!err && !io_options) { err = check_error (KIM_NULL_PARAMETER_ERR); }
     
     if (!err && in_service_name) {
         err = kim_string_copy (&service_name, in_service_name);