Page MenuHomeFreeBSD

D48777.diff
No OneTemporary

D48777.diff

diff --git a/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c b/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
--- a/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
+++ b/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
@@ -282,7 +282,7 @@
/* Maintain list of all current SSL *'s */
newslp = malloc(sizeof(*newslp));
- newslp->refno = argp->socookie;
+ newslp->cookie = argp->socookie;
newslp->s = s;
newslp->shutoff = false;
newslp->ssl = ssl;
@@ -300,7 +300,7 @@
char junk;
LIST_FOREACH(slp, &rpctls_ssllist, next)
- if (slp->refno == argp->socookie)
+ if (slp->cookie == argp->socookie)
break;
if (slp != NULL) {
@@ -337,7 +337,7 @@
int ret;
LIST_FOREACH(slp, &rpctls_ssllist, next)
- if (slp->refno == argp->socookie)
+ if (slp->cookie == argp->socookie)
break;
if (slp != NULL) {
diff --git a/usr.sbin/rpc.tlsservd/rpc.tlscommon.h b/usr.sbin/rpc.tlsservd/rpc.tlscommon.h
--- a/usr.sbin/rpc.tlsservd/rpc.tlscommon.h
+++ b/usr.sbin/rpc.tlsservd/rpc.tlscommon.h
@@ -40,13 +40,13 @@
/*
* A linked list of all current "SSL *"s and socket "fd"s
* for kernel RPC TLS connections is maintained.
- * The "refno" field is a unique 64bit value used to
+ * The "cookie" field is a unique 64bit value used to
* identify which entry a kernel RPC upcall refers to.
*/
LIST_HEAD(ssl_list, ssl_entry);
struct ssl_entry {
LIST_ENTRY(ssl_entry) next;
- uint64_t refno;
+ uint64_t cookie;
int s;
bool shutoff;
SSL *ssl;
diff --git a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
--- a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
+++ b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
@@ -404,7 +404,7 @@
newslp->ssl = ssl;
newslp->s = s;
newslp->shutoff = false;
- newslp->refno = argp->socookie;
+ newslp->cookie = argp->socookie;
newslp->cert = cert;
LIST_INSERT_HEAD(&rpctls_ssllist, newslp, next);
return (TRUE);
@@ -419,7 +419,7 @@
char junk;
LIST_FOREACH(slp, &rpctls_ssllist, next)
- if (slp->refno == argp->socookie)
+ if (slp->cookie == argp->socookie)
break;
if (slp != NULL) {
@@ -456,7 +456,7 @@
int ret;
LIST_FOREACH(slp, &rpctls_ssllist, next)
- if (slp->refno == argp->socookie)
+ if (slp->cookie == argp->socookie)
break;
if (slp != NULL) {

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 25, 10:06 AM (7 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27934710
Default Alt Text
D48777.diff (2 KB)

Event Timeline