Skip to content

Commit 60001d5

Browse files
Michal StruweSESA747457
authored andcommitted
session_server_tls: remove unneeded pointer resets
1 parent 858138e commit 60001d5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/session_server_tls.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ nc_server_tls_cert_to_name(struct nc_ctn *ctn, void *cert_chain, char **username
372372
fingerprint_match = 1;
373373
}
374374
free(digest_md5);
375-
digest_md5 = NULL;
376375

377376
/* SHA-1 */
378377
} else if (!strncmp(ctn->fingerprint, "02", 2)) {
@@ -388,7 +387,6 @@ nc_server_tls_cert_to_name(struct nc_ctn *ctn, void *cert_chain, char **username
388387
fingerprint_match = 1;
389388
}
390389
free(digest_sha1);
391-
digest_sha1 = NULL;
392390

393391
/* SHA-224 */
394392
} else if (!strncmp(ctn->fingerprint, "03", 2)) {
@@ -404,7 +402,6 @@ nc_server_tls_cert_to_name(struct nc_ctn *ctn, void *cert_chain, char **username
404402
fingerprint_match = 1;
405403
}
406404
free(digest_sha224);
407-
digest_sha224 = NULL;
408405

409406
/* SHA-256 */
410407
} else if (!strncmp(ctn->fingerprint, "04", 2)) {
@@ -420,7 +417,6 @@ nc_server_tls_cert_to_name(struct nc_ctn *ctn, void *cert_chain, char **username
420417
fingerprint_match = 1;
421418
}
422419
free(digest_sha256);
423-
digest_sha256 = NULL;
424420

425421
/* SHA-384 */
426422
} else if (!strncmp(ctn->fingerprint, "05", 2)) {
@@ -436,7 +432,6 @@ nc_server_tls_cert_to_name(struct nc_ctn *ctn, void *cert_chain, char **username
436432
fingerprint_match = 1;
437433
}
438434
free(digest_sha384);
439-
digest_sha384 = NULL;
440435

441436
/* SHA-512 */
442437
} else if (!strncmp(ctn->fingerprint, "06", 2)) {
@@ -452,7 +447,6 @@ nc_server_tls_cert_to_name(struct nc_ctn *ctn, void *cert_chain, char **username
452447
fingerprint_match = 1;
453448
}
454449
free(digest_sha512);
455-
digest_sha512 = NULL;
456450

457451
/* unknown */
458452
} else {

0 commit comments

Comments
 (0)