Check-in Number:
|
1159 | |
Date: |
2001-Oct-11 17:20:30 (local)
2001-Oct-11 15:20:30 (UTC) |
User: | rse |
Branch: | |
Comment: |
make prefixlen=0 a real wildcard |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sa/sa.c 1.32 -> 1.33
--- sa.c 2001/10/11 15:12:19 1.32
+++ sa.c 2001/10/11 15:20:30 1.33
@@ -690,7 +690,11 @@
if (saa1 == NULL || saa2 == NULL || prefixlen < -1)
return SA_ERR_ARG;
- /* match short circuiting */
+ /* short circuiting for wildcard matching */
+ if (prefixlen == 0)
+ return SA_OK;
+
+ /* short circuiting handling different families */
if (saa1->nFamily != saa2->nFamily)
return SA_ERR_MTC;
|
|