Allow the isns server to accept legal registration
sequence, including portal group information.
---
 simple.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/simple.c b/simple.c
index e560d63288ac..8972a0c858bc 100644
--- a/simple.c
+++ b/simple.c
@@ -587,7 +587,7 @@ isns_attr_list_scanner_get_pg(struct 
isns_attr_list_scanner *st)
                 && isns_object_get_string(base,
                                        ISNS_TAG_ISCSI_NAME,
                                        &st->pgt_iscsi_name)) {
-                       st->pgt_next_attr = ISNS_TAG_PORTAL_IP_ADDRESS;
+                       st->pgt_next_attr = ISNS_TAG_PG_PORTAL_IP_ADDR;
                } else {
                        return ISNS_INTERNAL_ERROR;
                }
@@ -619,7 +619,7 @@ isns_attr_list_scanner_get_pg(struct 
isns_attr_list_scanner *st)
                        return ISNS_INVALID_REGISTRATION;
 
                next = st->orig_attrs.ial_data[st->pos++];
-               if (next->ia_tag_id != ISNS_TAG_PORTAL_TCP_UDP_PORT)
+               if (next->ia_tag_id != ISNS_TAG_PG_PORTAL_TCP_UDP_PORT)
                        return ISNS_INVALID_REGISTRATION;
 
                isns_attr_list_append_string(&st->keys,
-- 
2.1.2

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to