Browse Source

tls: fixed usage of error label

- introduced in previous commit
Daniel-Constantin Mierla 15 năm trước cách đây
mục cha
commit
81280e02fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/tls/tls_mod.c

+ 1 - 1
modules/tls/tls_mod.c

@@ -341,7 +341,7 @@ static int mod_init(void)
 	/* register the rpc interface */
 	if (rpc_register_array(tls_rpc)!=0) {
 		LOG(L_ERR, "failed to register RPC commands\n");
-		goto error;
+		return -1;
 	}
 
 	 /* if (init_tls() < 0) return -1; */