diff --git a/gck-rpc-dispatch.c b/gck-rpc-dispatch.c index 029e3a6e9567a8daf579bc7bcfd882cb0fcfc4fe..8ba41cb7163f701bfd0392c1adcb05476218e464 100644 --- a/gck-rpc-dispatch.c +++ b/gck-rpc-dispatch.c @@ -2295,7 +2295,7 @@ int gck_rpc_layer_initialize(const char *prefix, CK_FUNCTION_LIST_PTR module) if (!strncmp("tcp://", prefix, 6)) { int one = 1, port; char *p = NULL; - const char *ip; + char *ip; ip = strdup(prefix + 6); if (ip == NULL) {